Hi,

I created this:

(def c3 (cache/ttl-cache-factory {:a 1} :ttl 20000))
user=> c3
{:a 1}
user=> (cache/has? c3 :a)
true
user=> (cache/has? c3 :a)
false
user=> c3
{:a 1}
user=> (cache/evict c3 :a)
{}
user=> c3
{:a 1}

After TTL, cache doesn't has :a entry but printing the var shows the map 
contains :a
Then evicting :a shows {} but printing the c3 shows again the map contains 
:a

What I'm missing?

Thanks for help and time

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to