Skip to content
An extended Dalli for memcached 1.4.x
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.md
dallish.gemspec

README.md

Dallish

Dallish is an extended Dalli for memcached 1.4.x.

https://rubygems.org/gems/dallish

Note

Dallish is slower than Dalli. Just use as a tool for debugging or management.

The methods by Dallish won't work with memcached 1.6 or higher.

How to use?

gem install dallish

Try it out as follows.

require 'dallish'

dallish = Dallish.new('localhost:11211')

# methods by Dalli

dallish.set('foo', 123)
dallish.set('fooo', 234)
dallish.set('bar', 345)
dallish.set('baz', 456)

dallish.get('foo') # => 123

# methods by Dallish

dallish.all_keys # => [foo,fooo,bar,baz]

dallish.find_keys_by(/foo.+/) # => [foo,fooo]

dallish.find_all_by(/foo.+/) # => {"foo"=>123,"fooo"=>234,"bar"=>345,"baz"=>456}

dallish.delete_all_by(/foo.+/) # 'foo', 'fooo' will be deleted

License

The MIT License

Something went wrong with that request. Please try again.