CachingFramework.Redis | Distributed caching based on StackExchange.Redis and Redis | Caching library
kandi X-RAY | CachingFramework.Redis Summary
kandi X-RAY | CachingFramework.Redis Summary
Distributed caching based on StackExchange.Redis and Redis. Includes support for tagging and is cluster-compatible.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CachingFramework.Redis
CachingFramework.Redis Key Features
CachingFramework.Redis Examples and Code Snippets
Community Discussions
Trending Discussions on CachingFramework.Redis
QUESTION
I'm working on a project using Redis cache with cachingFramework.redis.
I already have working the get function with Redis (using FetchObject)
but I need to update the Save function to save in DB and override/update the key/value in Redis.
Should I use SetObject? or I need to call first Remove(key)
...ANSWER
Answered 2020-Apr-16 at 20:27It really depends on the when
parameter, but by default the SET operation on redis overrides the current value, regardless of its type. Here is the documentation.
So you don't need to call the Remove
method.
You can check here how StackExchange.Redis
library choose between different SET commands (SET, SETNX, SETEX) depending on the parameters.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CachingFramework.Redis
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page