A more efficient implementation of clojure.core.cache/has? for BasicMongerCache
This commit is contained in:
parent
90c2864ddd
commit
ceeac55496
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
(:value doc)
|
||||
not-found))
|
||||
(has? [c k]
|
||||
(mc/any? (get c :collection) {:_id k}))
|
||||
(not (nil? (mc/find-by-id (get c :collection) k))))
|
||||
(hit [this k]
|
||||
this)
|
||||
(miss [c k v]
|
||||
|
|
|
|||
Loading…
Reference in a new issue