Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seratch/dallish
An extended Dalli for memcached 1.4.x
https://github.com/seratch/dallish
Last synced: about 1 month ago
JSON representation
An extended Dalli for memcached 1.4.x
- Host: GitHub
- URL: https://github.com/seratch/dallish
- Owner: seratch
- License: mit
- Created: 2012-08-31T01:25:32.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2012-08-31T05:50:06.000Z (about 12 years ago)
- Last Synced: 2024-04-26T11:22:12.718Z (7 months ago)
- Language: Ruby
- Size: 120 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dallish
Dallish is an extended [Dalli](https://github.com/mperham/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.
```ruby
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