Comments (4)
No problem, good luck with the ratelimiter :)
from miniredis.
Thank for your report.
Miniredis is frozen in time and won't expire anything by itself. You'll have to call m.FastForward(some duration)
to have it expire keys.
FastForward()
is mentioned in the readme, but it was pretty hidden. I made it a separate section, maybe that helps.
from miniredis.
And if you use FastForward()
you can remove the time.Sleep()
call, which is why it works this way.
from miniredis.
Arg! Sorry about that. I completely missed it. Thanks very much!
from miniredis.
Related Issues (20)
- Race in stream when using blocking calls
- support for redis v8 HOT 2
- need export non-lock version function like RedisDB.stringGet
- ZMSCORE unsupported HOT 3
- expire time invalid HOT 5
- RESP3 Issues HOT 9
- Wrong behavior with SET NX GET HOT 4
- how can i know the miniredis was close HOT 2
- MEMORY USAGE command HOT 2
- Special lastId=$ not working with XREAD HOT 2
- Blocking calls from lua always deadlock HOT 4
- Discrepancy with LSET after copying a list HOT 2
- redis: can't parse array/set/push HOT 6
- not support mock err HOT 1
- Slow SPOP command due to re-sorting HOT 2
- Last release v2.30.5 has incorrect tag HOT 1
- Last release v2.30.5 has incorrect tag HOT 3
- Feature Request: `CLIENT` Command Not Supported HOT 2
- Using embedded subscribe and external client leads to io timeout HOT 5
- Feature Request: ZINTER command HOT 2
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 miniredis.