[FEATURE] Add async operations for CacheManager
and ICacheRepository
classes
#88
Labels
cache
enhancement
New feature or request
gitauto
GitAuto label to trigger the app in a issue.
good first issue
Good for newcomers
hacktoberfest
Participation in the Hacktoberfest event
help wanted
Extra attention is needed
Description
Enhance the
CacheManager
class and its implementations to support asynchronous operations. This update will improve the performance and scalability of cache operations by allowing non-blocking interactions with the cache.Tasks
Update
CacheManager
Methods:CacheManager
class to include asynchronous versions of its methods. For example, addasync
andawait
to the existing methods for operations likeGet
,Set
, andRemove
.Implement Asynchronous Methods in Repositories:
ICacheRepository
implementations to support asynchronous operations:Tech Notes
Updating
CacheManager
:CacheManager
that perform I/O operations or can benefit from async execution.async
andawait
. For example:Updating
ICacheRepository
Implementations:CouchDBCacheRepository
:client.Get()
withawait client.GetAsync()
.MemoryCacheRepository
:Task.Run()
for async behavior if needed.RedisCacheRepository
:IDatabase.StringGetAsync()
,IDatabase.StringSetAsync()
.RedisCacheRepository
are non-blocking.Testing:
Additional Notes
The text was updated successfully, but these errors were encountered: