Skip to content
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

has_key?/1 does not respect ttl #33

Closed
nsweeting opened this issue Nov 23, 2018 · 1 comment
Closed

has_key?/1 does not respect ttl #33

nsweeting opened this issue Nov 23, 2018 · 1 comment

Comments

@nsweeting
Copy link

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 return false when the ttl has expired.

Actual behavior

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
@nsweeting nsweeting changed the title has_key?/1 and ttl issue has_key?/1 does not respect ttl Nov 23, 2018
@cabol
Copy link
Owner

cabol commented Nov 24, 2018

@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.

@cabol cabol closed this as completed Nov 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants