Pure Crystal implementation of a Memcached client.
Add this to your application's shard.yml
:
dependencies:
memcached:
github: comandeo/crystal-memcached
require "memcached"
client = Memcached::Client.new
client.set("Key", "Value")
value = client.get("Key")
- get
- multi-get for faster getting multiple keys values (read here for details)
- set (with or without expiration)
- data version check
- delete
- append
- prepend
- touch
- flush
- increment
- decrement
- Fork it ( https://github.com/comandeo/crystal-memcached/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- comandeo Dmitry Rybakov - creator, maintainer