Class RedissonSpringCacheNativeManager

java.lang.Object
org.redisson.spring.cache.RedissonSpringCacheManager
org.redisson.spring.cache.RedissonSpringCacheNativeManager
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.cache.CacheManager, org.springframework.context.ResourceLoaderAware

public class RedissonSpringCacheNativeManager extends RedissonSpringCacheManager implements org.springframework.cache.CacheManager, org.springframework.context.ResourceLoaderAware, org.springframework.beans.factory.InitializingBean
A CacheManager implementation backed by Redisson instance.
Author:
Nikita Koksharov
  • Constructor Details

    • RedissonSpringCacheNativeManager

      public RedissonSpringCacheNativeManager(RedissonClient redisson)
      Creates CacheManager supplied by Redisson instance
      Parameters:
      redisson - object
    • RedissonSpringCacheNativeManager

      public RedissonSpringCacheNativeManager(RedissonClient redisson, Map<String,? extends CacheConfig> config)
      Creates CacheManager supplied by Redisson instance and Cache config mapped by Cache name
      Parameters:
      redisson - object
      config - object
    • RedissonSpringCacheNativeManager

      public RedissonSpringCacheNativeManager(RedissonClient redisson, Map<String,? extends CacheConfig> config, Codec codec)
      Creates CacheManager supplied by Redisson instance, Codec instance and Cache config mapped by Cache name.

      Each Cache instance share one Codec instance.

      Parameters:
      redisson - object
      config - object
      codec - object
    • RedissonSpringCacheNativeManager

      public RedissonSpringCacheNativeManager(RedissonClient redisson, String configLocation)
      Creates CacheManager supplied by Redisson instance and Cache config mapped by Cache name.

      Loads the config file from the class path, interpreting plain paths as class path resource names that include the package path (e.g. "mypackage/myresource.txt").

      Parameters:
      redisson - object
      configLocation - path
    • RedissonSpringCacheNativeManager

      public RedissonSpringCacheNativeManager(RedissonClient redisson, String configLocation, Codec codec)
      Creates CacheManager supplied by Redisson instance, Codec instance and Config location path.

      Each Cache instance share one Codec instance.

      Loads the config file from the class path, interpreting plain paths as class path resource names that include the package path (e.g. "mypackage/myresource.txt").

      Parameters:
      redisson - object
      configLocation - path
      codec - object
  • Method Details