Comments (2)
I think you could try to switch to use async methods of IDatabase, for ex StringGetAsync, StringSetAsync,... for all of places where you make calls to Redis cache.
Last time it helped to reduce my application timeout.
from stackexchange.redis.
Move all the redis operations to async like @KendoSai said, also if you could group them all into whenAll it would be way more efficient due to redis pipelining and lastly, be careful with using IDistributedCache when adding values to redis, i had some issues with it because it was storing simple values as an hash, which eventually made things much slower (i stopped using IDistributedCache and created my own provider using redis operations only)
from stackexchange.redis.
Related Issues (20)
- Feature: Stall Detection
- Protocol error: invalid bulk length HOT 2
- ERR wrong number of arguments for 'expire' command - Azure Cache for Redis HOT 4
- Support for Hash Field Expiration commands HOT 1
- How to resume enumerate key from last breakpoint? HOT 2
- When need use await for batch.KeyExpireAsync(key, TimeSpan.FromSeconds(expiry)) and when not? HOT 4
- Is there any way to match keys aligned reg pattern ^[0-9A-Za-z_-]{80}$? HOT 8
- Load test with subscribe/unsubscribe/publish HOT 2
- Support for HSCAN NOVALUES option HOT 1
- Support reading last message from stream
- Support MAXAGE option for CLIENT KILL
- Connection established but 'The specified endpoint is not defined' HOT 1
- What't the possible reason of StackExchange.Redis.RedisTimeoutException?
- Error: No endpoints specified (Parameter 'config'), when connecting from Docker container HOT 5
- Can I pick specific shard of a redis server? HOT 9
- ArgumentException while OutputCache is cached HOT 2
- What's the possible reason leading difference peak in Server Load, Processor Time and CPU usage? HOT 6
- RedisConnectionException in StackExchange.Redis when using ElastiCache Cluster "No connection is available to service this operation" HOT 3
- SortedSetRangeByValueAsync method returns incorrect results when filtering by value range
- SortedSetRank doesn't include the score HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackexchange.redis.