Method: Readthis::Cache#delete
- Defined in:
- lib/readthis/cache.rb
#delete(key, options = {}) ⇒ Object
Delete the value stored at the specified key. Returns true if anything was deleted, false otherwise.
126 127 128 129 130 131 132 |
# File 'lib/readthis/cache.rb', line 126 def delete(key, = {}) namespaced = namespaced_key(key, ()) invoke(:delete, key) do |store| store.del(namespaced) > 0 end end |