类 SaRedisCache

java.lang.Object
cn.dev33.satoken.jboot.SaRedisCache
所有已实现的接口:
com.jfinal.plugin.activerecord.cache.ICache, io.jboot.components.cache.JbootCache

public class SaRedisCache extends Object implements io.jboot.components.cache.JbootCache
sa 缓存处理
  • 字段详细资料

    • config

      protected io.jboot.support.redis.JbootRedisConfig config
    • jedisPool

      protected redis.clients.jedis.JedisPool jedisPool
  • 构造器详细资料

    • SaRedisCache

      public SaRedisCache(io.jboot.support.redis.JbootRedisConfig config)
    • SaRedisCache

      public SaRedisCache(redis.clients.jedis.JedisPool jedisPool)
  • 方法详细资料

    • setCurrentCacheNamePrefix

      public io.jboot.components.cache.JbootCache setCurrentCacheNamePrefix(String cacheNamePrefix)
      指定者:
      setCurrentCacheNamePrefix 在接口中 io.jboot.components.cache.JbootCache
    • removeCurrentCacheNamePrefix

      public void removeCurrentCacheNamePrefix()
      指定者:
      removeCurrentCacheNamePrefix 在接口中 io.jboot.components.cache.JbootCache
    • getConfig

      public io.jboot.components.cache.JbootCacheConfig getConfig()
      指定者:
      getConfig 在接口中 io.jboot.components.cache.JbootCache
    • get

      public <T> T get(String cacheName, Object key)
      指定者:
      get 在接口中 com.jfinal.plugin.activerecord.cache.ICache
      指定者:
      get 在接口中 io.jboot.components.cache.JbootCache
    • put

      public void put(String cacheName, Object key, Object value)
      指定者:
      put 在接口中 com.jfinal.plugin.activerecord.cache.ICache
      指定者:
      put 在接口中 io.jboot.components.cache.JbootCache
    • put

      public void put(String cacheName, Object key, Object value, int liveSeconds)
      指定者:
      put 在接口中 io.jboot.components.cache.JbootCache
    • remove

      public void remove(String cacheName, Object key)
      指定者:
      remove 在接口中 com.jfinal.plugin.activerecord.cache.ICache
      指定者:
      remove 在接口中 io.jboot.components.cache.JbootCache
    • removeAll

      public void removeAll(String cacheName)
      指定者:
      removeAll 在接口中 com.jfinal.plugin.activerecord.cache.ICache
      指定者:
      removeAll 在接口中 io.jboot.components.cache.JbootCache
    • get

      public <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader)
      指定者:
      get 在接口中 io.jboot.components.cache.JbootCache
    • get

      public <T> T get(String cacheName, Object key, com.jfinal.plugin.ehcache.IDataLoader dataLoader, int liveSeconds)
      指定者:
      get 在接口中 io.jboot.components.cache.JbootCache
    • getTtl

      public Integer getTtl(String cacheName, Object key)
      指定者:
      getTtl 在接口中 io.jboot.components.cache.JbootCache
    • setTtl

      public void setTtl(String cacheName, Object key, int seconds)
      指定者:
      setTtl 在接口中 io.jboot.components.cache.JbootCache
    • refresh

      public void refresh(String cacheName, Object key)
      指定者:
      refresh 在接口中 io.jboot.components.cache.JbootCache
    • refresh

      public void refresh(String cacheName)
      指定者:
      refresh 在接口中 io.jboot.components.cache.JbootCache
    • getNames

      public List getNames()
      指定者:
      getNames 在接口中 io.jboot.components.cache.JbootCache
    • getKeys

      public List getKeys(String cacheName)
      指定者:
      getKeys 在接口中 io.jboot.components.cache.JbootCache
    • getJedis

      public redis.clients.jedis.Jedis getJedis()
    • returnResource

      public void returnResource(redis.clients.jedis.Jedis jedis)
    • scan

      public io.jboot.support.redis.RedisScanResult<String> scan(String pattern, String cursor, int scanCount)