Redis 客户端
Inheritance Hierarchy
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntaxpublic class RedisClient : ICache,
IPoolInstance, IDisposable
Public Class RedisClient
Implements ICache, IPoolInstance, IDisposable
public ref class RedisClient : ICache,
IPoolInstance, IDisposable
type RedisClient =
class
interface ICache
interface IPoolInstance
interface IDisposable
end
The RedisClient type exposes the following members.
Constructors
Methods
| Name | Description |
---|
 | Append |
设置一个二进制值
|
 | BackgroundSave |
背景保存
|
 | Decrement(String) |
自减一
|
 | Decrement(String, Int32) |
自减指定数值
|
 | Delete |
删除一个缓存值
|
 | Dispose |
资源释放
|
 | Equals | (Inherited from Object.) |
 | Exists |
确认一个键是否存在
|
 | Expire |
设置键过期间隔
|
 | ExpireAt |
设置键绝对过期时间
|
 | Finalize | (Inherited from Object.) |
 | FlushAll |
清空数据
|
 | FlushDb |
清空当前DB
|
 | Get(String) |
获取字符串结果
|
 | GetT(String) |
获取一个对象
|
 | GetByteKeys |
获取键键值列表
|
 | GetBytes |
获取节字数组
|
 | GetDbSize |
获取数据库大小
|
 | GetHashCode |
用作特定类型的哈希函数。
(Inherited from Object.) |
 | GetInfo |
获取服务器信息
|
 | GetKeys |
获取所有键列表
|
 | GetKeys(String) |
获取匹配的键列表
|
 | GetKeys(String) |
获取键的字符串值列表
|
 | GetSet(String, Byte) |
获取并设置一个新值
|
 | GetSet(String, String) |
获取并设置一个新值
|
 | GetType | (Inherited from Object.) |
 | Increment(String) |
自加一
|
 | Increment(String, Int32) |
自加一个数值
|
 | LastSave |
获取最后保存时间
|
 | Length |
获取一个键值长度
|
 | MemberwiseClone | (Inherited from Object.) |
 | RandomKey |
随机获取一个键
|
 | Remove(String) |
删除一个键
|
 | Remove(String) |
删除一批键
|
 | Rename |
重命名一个键
|
 | Save |
保存
|
 | Set(IDictionaryString, Byte) |
设置一组数据(MSET)
|
 | Set(IDictionaryString, String) |
设置一组字符串(MSET)
|
 | Set(String, Byte) |
设置一个二进制值
|
 | Set(String, String) |
设置一个字符串值
|
 | Set(String, Object, Int32) |
设置一个值
|
 | SetEX(String, Byte, Int32) |
设置一个值并指定过期时间
|
 | SetEX(String, String, Int32) |
设置一个值并指定过期时间
|
 | SetNX(String, Byte) |
设置一个值,当键已存在时则忽略
|
 | SetNX(String, String) |
设置一个值,当键已存在时则忽略
|
 | Shutdown |
关闭
|
 | ToString | (Inherited from Object.) |
 | TTL |
获取一个键的TTL值
|
 | TypeOf |
获取键类型
|
Top
Properties
See Also