Support of Redis for .NET

CAST supports Redis via its com.castsoftware.nosqldotnet extension. Details about the support provided for .NET source code is discussed below.

Supported Client Libraries

Library Version

Supported

StackExchange.Redis 2.6.x

ServiceStack.Redis 6.8.x

Microsoft.Extensions.Caching.Redis 2.2.x

Microsoft.Extensions.Caching.StackExchangeRedis 7.0.x

Supported Operations

Operation Scenario Methods Supported
Insert StackExchange.Redis

StackExchange.Redis.IDatabase.GeoAdd

StackExchange.Redis.IDatabase.HyperLogLogAdd

StackExchange.Redis.IDatabase.ListInsertAfter

StackExchange.Redis.IDatabase.ListInsertBefore

StackExchange.Redis.IDatabase.ListRightPush

StackExchange.Redis.IDatabase.SortedSetAdd

StackExchange.Redis.IDatabase.SetAdd

StackExchange.Redis.IDatabase.StreamAdd

StackExchange.Redis.IDatabase.StringGetSet

StackExchange.Redis.IDatabase.StringGetSetExpiry

StackExchange.Redis.IDatabaseAsync.GeoAddAsync

StackExchange.Redis.IDatabaseAsync.HyperLogLogAddAsync

StackExchange.Redis.IDatabaseAsync.ListInsertAfterAsync

StackExchange.Redis.IDatabaseAsync.ListInsertBeforeAsync

StackExchange.Redis.IDatabaseAsync.ListRightPushAsync

StackExchange.Redis.IDatabaseAsync.SortedSetAddAsync

StackExchange.Redis.IDatabaseAsync.SetAddAsync

StackExchange.Redis.IDatabaseAsync.StreamAddAsync

StackExchange.Redis.IDatabaseAsync.StringGetSetAsync

StackExchange.Redis.IDatabaseAsync.StringGetSetExpiryAsync

Insert ServiceStack.Redis

ServiceStack.Redis.RedisClient.AddItemToList

ServiceStack.Redis.RedisClient.AddItemToSet

ServiceStack.Redis.RedisClient.AddRangeToList

ServiceStack.Redis.RedisClient.AddRangeToSet

ServiceStack.Redis.RedisClient.CreateHashSet

ServiceStack.Redis.RedisClient.PushItemToList

Insert Microsoft.Extensions.Caching.Redis

Microsoft.Extensions.Caching.Redis.RedisCache.Set

Microsoft.Extensions.Caching.Redis.RedisCache.SetAsync

Insert Microsoft.Extensions.Caching.StackExchangeRedis

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.Set

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.SetAsync

Update StackExchange.Redis

StackExchange.Redis.IDatabase.StringIncrement

StackExchange.Redis.IDatabaseAsync.StringIncrementAsync

StackExchange.Redis.IDatabase.KeyMigrate

StackExchange.Redis.IDatabase.KeyRename

StackExchange.Redis.IDatabase.SortedSetUpdate

StackExchange.Redis.IDatabaseAsync.KeyRenameAsync

StackExchange.Redis.IDatabaseAsync.SortedSetUpdateAsync

Update ServiceStack.Redis

ServiceStack.Redis.RedisClient.IncrementValueInHash

Select StackExchange.Redis

StackExchange.Redis.IDatabase.GeoDistance

StackExchange.Redis.IDatabase.GeoHash

StackExchange.Redis.IDatabase.GeoPosition

StackExchange.Redis.IDatabase.GeoRadius

StackExchange.Redis.IDatabase.GeoSearch

StackExchange.Redis.IDatabase.GeoSearchAndStore

StackExchange.Redis.IDatabase.HashDecrement

StackExchange.Redis.IDatabase.SortedSetPop

StackExchange.Redis.IDatabase.HashExists

StackExchange.Redis.IDatabase.HashGet

StackExchange.Redis.IDatabase.HashGetLease

StackExchange.Redis.IDatabase.HashGetAll

StackExchange.Redis.IDatabase.HashIncrement

StackExchange.Redis.IDatabase.HashKeys

StackExchange.Redis.IDatabase.HashLength

StackExchange.Redis.IDatabase.HashRandomField

StackExchange.Redis.IDatabase.HashRandomFields

StackExchange.Redis.IDatabase.HashRandomFieldsWithValues

StackExchange.Redis.IDatabase.HashScan

StackExchange.Redis.IDatabase.HashSet

StackExchange.Redis.IDatabase.HashStringLength

StackExchange.Redis.IDatabase.HashValues

StackExchange.Redis.IDatabase.HyperLogLogLength

StackExchange.Redis.IDatabase.HyperLogLogMerge

StackExchange.Redis.IDatabase.IdentifyEndpoint

StackExchange.Redis.IDatabase.KeyCopy

StackExchange.Redis.IDatabase.KeyEncoding

StackExchange.Redis.IDatabase.KeyExists

StackExchange.Redis.IDatabase.KeyExpire

StackExchange.Redis.IDatabase.KeyExpireTime

StackExchange.Redis.IDatabase.KeyFrequency

StackExchange.Redis.IDatabase.KeyIdleTime

StackExchange.Redis.IDatabase.KeyMove

StackExchange.Redis.IDatabase.KeyPersist

StackExchange.Redis.IDatabase.KeyRandom

StackExchange.Redis.IDatabase.KeyRefCount

StackExchange.Redis.IDatabase.KeyRestore

StackExchange.Redis.IDatabase.KeyTimeToLive

StackExchange.Redis.IDatabase.KeyTouch

StackExchange.Redis.IDatabase.KeyType

StackExchange.Redis.IDatabase.ListGetByIndex

StackExchange.Redis.IDatabase.ListPosition

StackExchange.Redis.IDatabase.ListPositions

StackExchange.Redis.IDatabase.ListLeftPush

StackExchange.Redis.IDatabase.ListLength

StackExchange.Redis.IDatabase.ListMove

StackExchange.Redis.IDatabase.ListRange

StackExchange.Redis.IDatabase.ListSetByIndex

StackExchange.Redis.IDatabase.ListTrim

StackExchange.Redis.IDatabase.LockExtend

StackExchange.Redis.IDatabase.LockQuery

StackExchange.Redis.IDatabase.LockRelease

StackExchange.Redis.IDatabase.LockTake

StackExchange.Redis.IDatabase.Publish

StackExchange.Redis.IDatabase.Execute

StackExchange.Redis.IDatabase.ScriptEvaluate

StackExchange.Redis.IDatabase.ScriptEvaluateReadOnly

StackExchange.Redis.IDatabase.SetCombine

StackExchange.Redis.IDatabase.SetCombineAndStore

StackExchange.Redis.IDatabase.SetContains

StackExchange.Redis.IDatabase.SetIntersectionLength

StackExchange.Redis.IDatabase.SetLength

StackExchange.Redis.IDatabase.SetMembers

StackExchange.Redis.IDatabase.SetMove

StackExchange.Redis.IDatabase.SetRandomMember

StackExchange.Redis.IDatabase.SetRandomMembers

StackExchange.Redis.IDatabase.SetScan

StackExchange.Redis.IDatabase.Sort

StackExchange.Redis.IDatabase.SortAndStore

StackExchange.Redis.IDatabase.SortedSetCombine

StackExchange.Redis.IDatabase.SortedSetCombineWithScores

StackExchange.Redis.IDatabase.SortedSetCombineAndStore

StackExchange.Redis.IDatabase.SortedSetDecrement

StackExchange.Redis.IDatabase.SortedSetIntersectionLength

StackExchange.Redis.IDatabase.SortedSetLength

StackExchange.Redis.IDatabase.SortedSetLengthByValue

StackExchange.Redis.IDatabase.SortedSetRandomMember

StackExchange.Redis.IDatabase.SortedSetRandomMembers

StackExchange.Redis.IDatabase.SortedSetRandomMembersWithScores

StackExchange.Redis.IDatabase.SortedSetRangeByRank

StackExchange.Redis.IDatabase.SortedSetRank

StackExchange.Redis.IDatabase.SortedSetScore

StackExchange.Redis.IDatabase.StreamAcknowledge

StackExchange.Redis.IDatabase.StreamAutoClaim

StackExchange.Redis.IDatabase.StreamAutoClaimIdsOnly

StackExchange.Redis.IDatabase.StreamClaim

StackExchange.Redis.IDatabase.StreamClaimIdsOnly

StackExchange.Redis.IDatabase.StreamConsumerGroupSetPosition

StackExchange.Redis.IDatabase.StreamConsumerInfo

StackExchange.Redis.IDatabase.StreamCreateConsumerGroup

StackExchange.Redis.IDatabase.StreamGroupInfo

StackExchange.Redis.IDatabase.StreamInfo

StackExchange.Redis.IDatabase.StreamLength

StackExchange.Redis.IDatabase.StreamPending

StackExchange.Redis.IDatabase.StreamPendingMessages

StackExchange.Redis.IDatabase.StreamRange

StackExchange.Redis.IDatabase.StreamReadGroup

StackExchange.Redis.IDatabase.StreamTrim

StackExchange.Redis.IDatabase.StringAppend

StackExchange.Redis.IDatabase.StringBitCount

StackExchange.Redis.IDatabase.StringBitOperation

StackExchange.Redis.IDatabase.StringBitPosition

StackExchange.Redis.IDatabase.StringDecrement

StackExchange.Redis.IDatabase.StringGet

StackExchange.Redis.IDatabase.StringGetLease

StackExchange.Redis.IDatabase.StringGetBit

StackExchange.Redis.IDatabase.StringGetRange

StackExchange.Redis.IDatabase.StringGetWithExpiry

StackExchange.Redis.IDatabase.StringIncrement

StackExchange.Redis.IDatabase.StringLength

StackExchange.Redis.IDatabase.StringLongestCommonSubsequence

StackExchange.Redis.IDatabase.StringLongestCommonSubsequenceLength

StackExchange.Redis.IDatabase.StringLongestCommonSubsequenceWithMatches

StackExchange.Redis.IDatabase.StringSet

StackExchange.Redis.IDatabase.StringSetAndGet

StackExchange.Redis.IDatabase.StringSetBit

StackExchange.Redis.IDatabase.StringSetRange

StackExchange.Redis.IDatabaseAsync.GeoDistanceAsync

StackExchange.Redis.IDatabaseAsync.GeoHashAsync

StackExchange.Redis.IDatabaseAsync.GeoPositionAsync

StackExchange.Redis.IDatabaseAsync.GeoRadiusAsync

StackExchange.Redis.IDatabaseAsync.GeoSearchAsync

StackExchange.Redis.IDatabaseAsync.GeoSearchAndStoreAsync

StackExchange.Redis.IDatabaseAsync.HashDecrementAsync

StackExchange.Redis.IDatabaseAsync.SortedSetPopAsync

StackExchange.Redis.IDatabaseAsync.HashExistsAsync

StackExchange.Redis.IDatabaseAsync.HashGetAsync

StackExchange.Redis.IDatabaseAsync.HashGetLeaseAsync

StackExchange.Redis.IDatabaseAsync.HashGetAllAsync

StackExchange.Redis.IDatabaseAsync.HashIncrementAsync

StackExchange.Redis.IDatabaseAsync.HashKeysAsync

StackExchange.Redis.IDatabaseAsync.HashLengthAsync

StackExchange.Redis.IDatabaseAsync.HashRandomFieldAsync

StackExchange.Redis.IDatabaseAsync.HashRandomFieldsAsync

StackExchange.Redis.IDatabaseAsync.HashRandomFieldsWithValuesAsync

StackExchange.Redis.IDatabaseAsync.HashScanAsync

StackExchange.Redis.IDatabaseAsync.HashSetAsync

StackExchange.Redis.IDatabaseAsync.SetScanAsync

StackExchange.Redis.IDatabaseAsync.HashScanAsync

StackExchange.Redis.IDatabaseAsync.HashStringLengthAsync

StackExchange.Redis.IDatabaseAsync.HashValuesAsync

StackExchange.Redis.IDatabaseAsync.HyperLogLogLengthAsync

StackExchange.Redis.IDatabaseAsync.HyperLogLogMergeAsync

StackExchange.Redis.IDatabaseAsync.IdentifyEndpointAsync

StackExchange.Redis.IDatabaseAsync.KeyCopyAsync

StackExchange.Redis.IDatabaseAsync.KeyEncodingAsync

StackExchange.Redis.IDatabaseAsync.KeyExistsAsync

StackExchange.Redis.IDatabaseAsync.KeyExpireAsync

StackExchange.Redis.IDatabaseAsync.KeyExpireTimeAsync

StackExchange.Redis.IDatabaseAsync.KeyFrequencyAsync

StackExchange.Redis.IDatabaseAsync.KeyIdleTimeAsync

StackExchange.Redis.IDatabaseAsync.KeyMoveAsync

StackExchange.Redis.IDatabaseAsync.KeyPersistAsync

StackExchange.Redis.IDatabaseAsync.KeyRandomAsync

StackExchange.Redis.IDatabaseAsync.KeyRefCountAsync

StackExchange.Redis.IDatabaseAsync.KeyRestoreAsync

StackExchange.Redis.IDatabaseAsync.KeyTimeToLiveAsync

StackExchange.Redis.IDatabaseAsync.KeyTouchAsync

StackExchange.Redis.IDatabaseAsync.KeyTypeAsync

StackExchange.Redis.IDatabaseAsync.ListGetByIndexAsync

StackExchange.Redis.IDatabaseAsync.ListPositionAsync

StackExchange.Redis.IDatabaseAsync.ListPositionsAsync

StackExchange.Redis.IDatabaseAsync.ListLeftPushAsync

StackExchange.Redis.IDatabaseAsync.ListLengthAsync

StackExchange.Redis.IDatabaseAsync.ListMoveAsync

StackExchange.Redis.IDatabaseAsync.ListRangeAsync

StackExchange.Redis.IDatabaseAsync.ListSetByIndexAsync

StackExchange.Redis.IDatabaseAsync.ListTrimAsync

StackExchange.Redis.IDatabaseAsync.LockExtendAsync

StackExchange.Redis.IDatabaseAsync.LockQueryAsync

StackExchange.Redis.IDatabaseAsync.LockReleaseAsync

StackExchange.Redis.IDatabaseAsync.LockTakeAsync

StackExchange.Redis.IDatabaseAsync.PublishAsync

StackExchange.Redis.IDatabaseAsync.ExecuteAsync

StackExchange.Redis.IDatabaseAsync.ScriptEvaluateAsync

StackExchange.Redis.IDatabaseAsync.ScriptEvaluateReadOnlyAsync

StackExchange.Redis.IDatabaseAsync.SetCombineAsync

StackExchange.Redis.IDatabaseAsync.SetCombineAndStoreAsync

StackExchange.Redis.IDatabaseAsync.SetContainsAsync

StackExchange.Redis.IDatabaseAsync.SetIntersectionLengthAsync

StackExchange.Redis.IDatabaseAsync.SetLengthAsync

StackExchange.Redis.IDatabaseAsync.SetMembersAsync

StackExchange.Redis.IDatabaseAsync.SetMoveAsync

StackExchange.Redis.IDatabaseAsync.SetRandomMemberAsync

StackExchange.Redis.IDatabaseAsync.SetRandomMembersAsync

StackExchange.Redis.IDatabaseAsync.SetScanAsync

StackExchange.Redis.IDatabaseAsync.SortAsync

StackExchange.Redis.IDatabaseAsync.SortAndStoreAsync

StackExchange.Redis.IDatabaseAsync.SortedSetCombineAsync

StackExchange.Redis.IDatabaseAsync.SortedSetCombineWithScoresAsync

StackExchange.Redis.IDatabaseAsync.SortedSetCombineAndStoreAsync

StackExchange.Redis.IDatabaseAsync.SortedSetDecrementAsync

StackExchange.Redis.IDatabaseAsync.SortedSetIntersectionLengthAsync

StackExchange.Redis.IDatabaseAsync.SortedSetLengthAsync

StackExchange.Redis.IDatabaseAsync.SortedSetLengthByValueAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRandomMemberAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRandomMembersAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRandomMembersWithScoresAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRangeByRankAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRankAsync

StackExchange.Redis.IDatabaseAsync.SortedSetScoreAsync

StackExchange.Redis.IDatabaseAsync.StreamAcknowledgeAsync

StackExchange.Redis.IDatabaseAsync.StreamAutoClaimAsync

StackExchange.Redis.IDatabaseAsync.StreamAutoClaimIdsOnlyAsync

StackExchange.Redis.IDatabaseAsync.StreamClaimAsync

StackExchange.Redis.IDatabaseAsync.StreamClaimIdsOnlyAsync

StackExchange.Redis.IDatabaseAsync.StreamConsumerGroupSetPositionAsync

StackExchange.Redis.IDatabaseAsync.StreamConsumerInfoAsync

StackExchange.Redis.IDatabaseAsync.StreamCreateConsumerGroupAsync

StackExchange.Redis.IDatabaseAsync.StreamGroupInfoAsync

StackExchange.Redis.IDatabaseAsync.StreamInfoAsync

StackExchange.Redis.IDatabaseAsync.StreamLengthAsync

StackExchange.Redis.IDatabaseAsync.StreamPendingAsync

StackExchange.Redis.IDatabaseAsync.StreamPendingMessagesAsync

StackExchange.Redis.IDatabaseAsync.StreamRangeAsync

StackExchange.Redis.IDatabaseAsync.StreamReadGroupAsync

StackExchange.Redis.IDatabaseAsync.StreamTrimAsync

StackExchange.Redis.IDatabaseAsync.StringAppendAsync

StackExchange.Redis.IDatabaseAsync.StringBitCountAsync

StackExchange.Redis.IDatabaseAsync.StringBitOperationAsync

StackExchange.Redis.IDatabaseAsync.StringBitPositionAsync

StackExchange.Redis.IDatabaseAsync.StringDecrementAsync

StackExchange.Redis.IDatabaseAsync.StringGetAsync

StackExchange.Redis.IDatabaseAsync.StringGetLeaseAsync

StackExchange.Redis.IDatabaseAsync.StringGetBitAsync

StackExchange.Redis.IDatabaseAsync.StringGetRangeAsync

StackExchange.Redis.IDatabaseAsync.StringGetWithExpiryAsync

StackExchange.Redis.IDatabaseAsync.StringIncrementAsync

StackExchange.Redis.IDatabaseAsync.StringLengthAsync

StackExchange.Redis.IDatabaseAsync.StringLongestCommonSubsequenceAsync

StackExchange.Redis.IDatabaseAsync.StringLongestCommonSubsequenceLengthAsync

StackExchange.Redis.IDatabaseAsync.StringLongestCommonSubsequenceWithMatchesAsync

StackExchange.Redis.IDatabaseAsync.StringSetAsync

StackExchange.Redis.IDatabaseAsync.StringSetAndGetAsync

StackExchange.Redis.IDatabaseAsync.StringSetBitAsync

StackExchange.Redis.IDatabaseAsync.StringSetRangeAsync

Select ServiceStack.Redis

ServiceStack.Redis.RedisClient.GetHashCount

ServiceStack.Redis.RedisClient.GetHashKeys

ServiceStack.Redis.RedisClient.GetListCount

ServiceStack.Redis.RedisClient.GetSetCount

Select

Microsoft.Extensions.Caching.Redis

Microsoft.Extensions.Caching.Redis.RedisCache.Get

Microsoft.Extensions.Caching.Redis.RedisCache.GetAsync

Microsoft.Extensions.Caching.Redis.RedisCache.GetAndRefresh

Microsoft.Extensions.Caching.Redis.RedisCache.GetAndRefreshAsync

Select Microsoft.Extensions.Caching.StackExchangeRedis

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.Get

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAsync

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefresh

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.GetAndRefreshAsync

Delete  StackExchange.Redis

StackExchange.Redis.IDatabase.GeoRemove

StackExchange.Redis.IDatabase.HashDelete

StackExchange.Redis.IDatabase.KeyDelete

StackExchange.Redis.IDatabase.KeyDump

StackExchange.Redis.IDatabase.ListRemove

StackExchange.Redis.IDatabase.ListLeftPop

StackExchange.Redis.IDatabase.ListRightPop

StackExchange.Redis.IDatabase.ListRightPopLeftPush

StackExchange.Redis.IDatabase.SetPop

StackExchange.Redis.IDatabase.SetRemove

StackExchange.Redis.IDatabase.SortedSetRemove

StackExchange.Redis.IDatabase.SortedSetRemoveRangeByRank

StackExchange.Redis.IDatabase.SortedSetRemoveRangeByScore

StackExchange.Redis.IDatabase.SortedSetRemoveRangeByValue

StackExchange.Redis.IDatabase.StreamDelete

StackExchange.Redis.IDatabase.StreamDeleteConsumer

StackExchange.Redis.IDatabase.StreamDeleteConsumerGroup

StackExchange.Redis.IDatabase.StringGetDelete

StackExchange.Redis.IDatabaseAsync.GeoRemoveAsync

StackExchange.Redis.IDatabaseAsync.HashDeleteAsync

StackExchange.Redis.IDatabaseAsync.KeyDeleteAsync

StackExchange.Redis.IDatabaseAsync.KeyDumpAsync

StackExchange.Redis.IDatabaseAsync.ListRemoveAsync

StackExchange.Redis.IDatabaseAsync.ListLeftPopAsync

StackExchange.Redis.IDatabaseAsync.ListRightPopAsync

StackExchange.Redis.IDatabaseAsync.ListRightPopLeftPushAsync

StackExchange.Redis.IDatabaseAsync.SetPopAsync

StackExchange.Redis.IDatabaseAsync.SetRemoveAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRemoveAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRemoveRangeByRankAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRemoveRangeByScoreAsync

StackExchange.Redis.IDatabaseAsync.SortedSetRemoveRangeByValueAsync

StackExchange.Redis.IDatabaseAsync.StreamDeleteAsync

StackExchange.Redis.IDatabaseAsync.StreamDeleteConsumerAsync

StackExchange.Redis.IDatabaseAsync.StreamDeleteConsumerGroupAsync

StackExchange.Redis.IDatabaseAsync.StringGetDeleteAsync

StackExchange.Redis.IDatabaseAsync.SortedSetPopAsync

Delete  ServiceStack.Redis

ServiceStack.Redis.RedisClient.RemoveItemFromSet

ServiceStack.Redis.RedisClient.RemoveItemFromList

ServiceStack.Redis.RedisClient.PopItemFromList

Delete  Microsoft.Extensions.Caching.Redis

Microsoft.Extensions.Caching.Redis.RedisCache.Remove

Microsoft.Extensions.Caching.Redis.RedisCache.RemoveAsync

Delete  Microsoft.Extensions.Caching.StackExchangeRedis

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.Remove

Microsoft.Extensions.Caching.StackExchangeRedis.RedisCache.RemoveAsync

Objects

Icon  Description

DotNet Redis Connection

DotNet Redis Collection

DotNet Unknown Redis Connection

 

DotNet Unknown Redis Collection 

Links are created for transaction and function point needs:

Link type Source and destination of link  Methods supported
belongsTo

From DotNet Redis Collection object to DotNet Redis Connection object

-
useInsertLink Between the caller .NET Class / Method objects and Dotnet Redis Collection objects

StringSet

StringSetAsync

Add

GeoAdd

HashSet

SetCombineAndStore

AddItemToList

AddItemToSet

AddRangeToList

AddRangeToSet

CreateHashSet

PushItemToList

GetSetCount

SetAsync

 useDeleteLink Between the caller .NET Class / Method objects and Dotnet Redis Collection objects

KeyDelete

Remove

RemoveAll

KeyDump

RemoveItemFromSet

RemoveItemFromList

PopItemFromList

RemoveAsync

useSelectLink

Between the caller .NET Class / Method objects and Dotnet Redis Collection objects

StringGet

StringGetAsync

GeoRadius

GeoRadiusAsync

HashGetAllAsync

HashGetAll

Sort

HashScan

SetScan

Get

GetHashCount

GetHashKeys

GetListCount

GetAsync

GetAndRefresh

GetAndRefreshAsync

useUpdateLink Between the caller .NET Class / Method objects and Dotnet Redis Collection objects

StringIncrement

StringIncrementAsync

IncrementValueInHash

What results can you expect?

Some example scenarios are shown below:

Redis Connections and Collections

public class TestRedis 
    {

        // Configure Redis cache options
        RedisCacheOptions cacheOptions = new RedisCacheOptions("localhost");

        // Create a Redis cache instance
        public RedisCache cache = new RedisCache(cacheOptions);

        // Generate a cache key
        var cacheKey = "Company";

        public void deleteCompany()
        {   
            // Remove the cached item
            cache.Remove(cacheKey);
        }
    }

Insert Operation

public void insertCompany()
        {   
            // Store a value in the cache
            DistributedCacheEntryOptions options = new DistributedCacheEntryOptions();
            byte byteArray = Encoding.UTF8.GetBytes("1, TATA, IND");
            cache.Set(cacheKey, byteArray, options);
        }

Select Operation

public void selectCompany()
        {   
            // Retrieve the value from the cache
            var cachedValue = cache.Get(cacheKey);
        }
       

Update Operation

// Generate a cache key
var cacheKey = "myCounter";
public void update_()
        {   
            // Retrieve the value from the cache
            newValue = redisDb.StringIncrement(cacheKey);
        }

Delete Operation

public void deleteCompany()
        {   
            // Remove the cached item
            cache.Remove(cacheKey);
        }

Known Limitations

  • Cases in which the name is not resolved, Unknown connection/collection object will get created