org.crazycake.shiro.IRedisManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shiro-redis Show documentation
Show all versions of shiro-redis Show documentation
shiro only provide the support of ehcache and
concurrentHashMap. Here is an implement of redis cache can be used by
shiro. Hope it will help you!
The newest version!
package org.crazycake.shiro;
import java.util.Set;
/**
* redisManager interface
*
**/
public interface IRedisManager {
/**
* get value from redis
* @param key key
* @return value
*/
byte[] get(byte[] key);
/**
* set value
* @param key key
* @param value value
* @param expire expire
* @return value
*/
byte[] set(byte[] key, byte[] value, int expire);
/**
* del
* @param key key
*/
void del(byte[] key);
/**
* dbsize
* @param pattern pattern
* @return key-value size
*/
Long dbSize(byte[] pattern);
/**
* keys
* @param pattern key pattern
* @return key set
*/
Set keys(byte[] pattern);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy