Skip to content

Knotx/knotx-commons

Repository files navigation

Build Status CodeFactor codecov Gradle Status

Knot.x Commons

Knot.x Commons contains support classes (utils, helpers, etc.). This module can be used via Knot.x API modules so all dependencies to Knot.x modules are not allowed.

Cache

Cache and CacheFactory interfaces can provide Knot.x with various cache implementations (e.g. in-memory, Redis, Elasticache etc.).

These implementations - when configured correctly for Service Provider Inteface - can then be used by CacheActionFactory in Knot.x Fragments. The desired implementation is selected using getType() method from CacheFactory interface. For reference see CacheFactory's Javadoc.

Currently, Knot.x provides in-memory Cache implementation, based on Google Guava cache.