We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Elixir version (elixir -v): Elixir 1.7.3 (compiled with Erlang/OTP 21) Nebulex version (mix deps): 1.0.0 Operating system: Ubuntu 18.04
Using has_key?/1 on a key that was set with a ttl should return false when the ttl has expired.
has_key?/1
false
iex> Cache.set(:foo, 1, ttl: 0) 1 iex> Cache.get(:foo) nil
iex> Cache.set(:foo, 1, ttl: 0) 1 iex> Cache.has_key?(:foo) true
The text was updated successfully, but these errors were encountered:
[#33] Fix has_key?/1; validate if key is expired
ddc3540
@nsweeting good catch! It is fixed now (master branch). Please check it out again and feel free to re-open it if the problem persist.
Sorry, something went wrong.
No branches or pull requests
Environment
Elixir version (elixir -v): Elixir 1.7.3 (compiled with Erlang/OTP 21)
Nebulex version (mix deps): 1.0.0
Operating system: Ubuntu 18.04
Expected behavior
Using
has_key?/1
on a key that was set with a ttl should returnfalse
when the ttl has expired.Actual behavior
The text was updated successfully, but these errors were encountered: