-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(adapter): use set and setex on rediscacheitempooladapter save #60
fix(adapter): use set and setex on rediscacheitempooladapter save #60
Conversation
4090889
to
7d1526f
Compare
43a0882
to
2e217e2
Compare
->isInstanceof('Psr\Cache\CacheItemInterface') | ||
->string($item->get()) | ||
->isEqualTo('myExpirableValue') | ||
->if(sleep(1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could use usleep for waiting less time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we talk about this point ?
As we use redis-mock
i could not check that we the method set
with the right argument was call.
As clientItem
use millisecond format for time expiration (and for some unknown reasons), using shorter time range than half second introduce some wired false-positive 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has we saw together there is an issue on RedisMock-bundle. Ttl resolution by milliseconde could not be use.
bbad48e
to
80296c7
Compare
80296c7
to
b046946
Compare
fix(adapter): replace set by set with option on rediscacheitempooladapter
b046946
to
75eed59
Compare
Why
RedisCacheItemPoolAdapter
switch from set declaration on v3.0.0 to set declaration on v6.0.1how
Using set and setex as it should be