RedisCacheClient Class

RedisCacheClient Class

public sealed class RedisCacheClient: IDisposable

Inheritance  IDisposable RedisCacheClient

Constructors

Name Description
RedisCacheClient(string)

Properties

Name Description
Database Return the instance of used be ICacheClient implementation

Methods

Name Description
Add<T>(string, T) Adds the specified instance to the Redis database.
Add<T>(string, T, DateTimeOffset) Adds the specified instance to the Redis database.
Add<T>(string, T, TimeSpan) Adds the specified instance to the Redis database.
AddAll<T>(IList<Tuple<string, T>>) Adds all.
AddAllAsync<T>(IList<Tuple<string, T>>) Adds all asynchronous.
AddAsync<T>(string, T) Adds the specified instance to the Redis database.
AddAsync<T>(string, T, DateTimeOffset) Adds the specified instance to the Redis database.
AddAsync<T>(string, T, TimeSpan) Adds the specified instance to the Redis database.
Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Exists(string) Verify that the specified cache key exists
ExistsAsync(string) Verify that the specified cache key exists
FlushDb() Flushes the database.
FlushDbAsync() Flushes the database asynchronous.
Get<T>(string) Get the object with the specified key from Redis database
GetAll<T>(IEnumerable<string>) Get the objects with the specified keys from Redis database with one roundtrip
GetAllAsync<T>(IEnumerable<string>)
GetAllIfAvailableAsync<T>(IEnumerable<string>)
GetAsync<T>(string) Get the object with the specified key from Redis database
GetInfo() Gets the information about redis. More info see http://redis.io/commands/INFO
GetInfoAsync() Gets the information about redis. More info see http://redis.io/commands/INFO
HashDelete(string, string, CommandFlags) Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored.
HashDelete(string, IEnumerable<string>, CommandFlags) Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored. If key does not exist, it is treated as an empty hash and this command returns 0.
HashDeleteAsync(string, string, CommandFlags)
HashDeleteAsync(string, IEnumerable<string>, CommandFlags) Removes the specified fields from the hash stored at key. Specified fields that do not exist within this hash are ignored. If key does not exist, it is treated as an empty hash and this command returns 0.
HashExists(string, string, CommandFlags) Returns if field is an existing field in the hash stored at key.
HashExistsAsync(string, string, CommandFlags) Returns if field is an existing field in the hash stored at key.
HashGet<T>(string, string, CommandFlags) Returns the value associated with field in the hash stored at key.
HashGet<T>(string, IEnumerable<string>, CommandFlags) Returns the values associated with the specified fields in the hash stored at key. For every field that does not exist in the hash, a nil value is returned. Because a non-existing keys are treated as empty hashes, running HMGET against a non-existing key will return a list of nil values.
HashGetAll<T>(string, CommandFlags) Returns all fields and values of the hash stored at key. In the returned value, every field name is followed by its value, so the length of the reply is twice the size of the hash.
HashGetAllAsync<T>(string, CommandFlags) Returns all fields and values of the hash stored at key. In the returned value, every field name is followed by its value, so the length of the reply is twice the size of the hash.
HashGetAsync<T>(string, string, CommandFlags) Returns the value associated with field in the hash stored at key.
HashGetAsync<T>(string, IEnumerable<string>, CommandFlags) Returns the values associated with the specified fields in the hash stored at key. For every field that does not exist in the hash, a nil value is returned. Because a non-existing keys are treated as empty hashes, running HMGET against a non-existing key will return a list of nil values.
HashIncerementBy(string, string, long, CommandFlags) Increments the number stored at field in the hash stored at key by increment. If key does not exist, a new key holding a hash is created. If field does not exist the value is set to 0 before the operation is performed. The range of values supported by HINCRBY is limited to 64 bit signed integers.
HashIncerementBy(string, string, double, CommandFlags) Increment the specified field of an hash stored at key, and representing a floating point number, by the specified increment. If the field does not exist, it is set to 0 before performing the operation.
HashIncerementByAsync(string, string, long, CommandFlags) Increments the number stored at field in the hash stored at key by increment. If key does not exist, a new key holding a hash is created. If field does not exist the value is set to 0 before the operation is performed. The range of values supported by HINCRBY is limited to 64 bit signed integers.
HashIncerementByAsync(string, string, double, CommandFlags) Increment the specified field of an hash stored at key, and representing a floating point number, by the specified increment. If the field does not exist, it is set to 0 before performing the operation.
HashKeys(string, CommandFlags) Returns all field names in the hash stored at key.
HashKeysAsync(string, CommandFlags) Returns all field names in the hash stored at key.
HashLength(string, CommandFlags) Returns the number of fields contained in the hash stored at key.
HashLengthAsync(string, CommandFlags) Returns the number of fields contained in the hash stored at key.
HashScan<T>(string, string, int, CommandFlags) iterates fields of Hash types and their associated values.
HashScanAsync<T>(string, string, int, CommandFlags) iterates fields of Hash types and their associated values.
HashSet<T>(string, string, T, bool, CommandFlags) Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.
HashSet<T>(string, Dictionary<string, T>, CommandFlags) Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created.
HashSetAsync<T>(string, string, T, bool, CommandFlags) Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten.
HashSetAsync<T>(string, IDictionary<string, T>, CommandFlags) Sets the specified fields to their respective values in the hash stored at key. This command overwrites any existing fields in the hash. If key does not exist, a new key holding a hash is created.
HashValues<T>(string, CommandFlags) Returns all values in the hash stored at key.
HashValuesAsync<T>(string, CommandFlags) Returns all values in the hash stored at key.
ListAddToLeft<T>(string, T) Insert the specified value at the head of the list stored at key. If key does not exist, it is created as empty list before performing the push operations.
ListAddToLeftAsync<T>(string, T) Lists the add to left asynchronous.
ListGetFromRight<T>(string) Removes and returns the last element of the list stored at key.
ListGetFromRightAsync<T>(string) Removes and returns the last element of the list stored at key.
Publish<T>(RedisChannel, T, CommandFlags) Publishes a message to a channel.
PublishAsync<T>(RedisChannel, T, CommandFlags) Publishes a message to a channel.
Remove(string) Removes the specified key from Redis Database
RemoveAll(IEnumerable<string>) Removes all specified keys from Redis Database
RemoveAllAsync(IEnumerable<string>) Removes all specified keys from Redis Database
RemoveAsync(string) Removes the specified key from Redis Database
Replace<T>(string, T) Replaces the object with specified key into Redis database.
Replace<T>(string, T, DateTimeOffset) Replaces the object with specified key into Redis database.
Replace<T>(string, T, TimeSpan) Replaces the object with specified key into Redis database.
ReplaceAsync<T>(string, T) Replaces the object with specified key into Redis database.
ReplaceAsync<T>(string, T, DateTimeOffset) Replaces the object with specified key into Redis database.
ReplaceAsync<T>(string, T, TimeSpan) Replaces the object with specified key into Redis database.
Save(SaveType) Save the DB in background.
SaveAsync(SaveType) Save the DB in background asynchronous.
SetAdd<T>(string, T) Run SADD command http://redis.io/commands/sadd
SetAddAll<T>(string, T[]) Run SADD command http://redis.io/commands/sadd
SetAddAllAsync<T>(string, T[]) Run SADD command http://redis.io/commands/sadd
SetAddAsync<T>(string, T) Run SADD command http://redis.io/commands/sadd"
SetMember(string) Run SMEMBERS command http://redis.io/commands/SMEMBERS
SetMemberAsync(string) Run SMEMBERS command see http://redis.io/commands/SMEMBERS
SetMembers<T>(string) Run SMEMBERS command see http://redis.io/commands/SMEMBERS Deserializes the results to T
SetMembersAsync<T>(string) Run SMEMBERS command see http://redis.io/commands/SMEMBERS Deserializes the results to T
SetRemove<T>(string, T) Run SREM command http://redis.io/commands/srem
SetRemoveAll<T>(string, T[]) Run SREM command http://redis.io/commands/srem
SetRemoveAllAsync<T>(string, T[]) Run SREM command http://redis.io/commands/srem
SetRemoveAsync<T>(string, T) Run SREM command http://redis.io/commands/srem"
Subscribe<T>(RedisChannel, Action<T>, CommandFlags) Registers a callback handler to process messages published to a channel.
SubscribeAsync<T>(RedisChannel, Func<T, Task>, CommandFlags) Registers a callback handler to process messages published to a channel.
Unsubscribe<T>(RedisChannel, Action<T>, CommandFlags) Unregisters a callback handler to process messages published to a channel.
UnsubscribeAll(CommandFlags) Unregisters all callback handlers on a channel.
UnsubscribeAllAsync(CommandFlags) Unregisters all callback handlers on a channel.
UnsubscribeAsync<T>(RedisChannel, Func<T, Task>, CommandFlags) Unregisters a callback handler to process messages published to a channel.