Skip to content

comandeo/crystal-memcached

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crystal Memcached

Crystal CI

Pure Crystal implementation of a Memcached client.

Installation

Add this to your application's shard.yml:

dependencies:
  memcached:
    github: comandeo/crystal-memcached

Usage

require "memcached"

client = Memcached::Client.new
client.set("Key", "Value")
value = client.get("Key")

What is implemented

  • 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

Contributing

  1. Fork it ( https://github.com/comandeo/crystal-memcached/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • comandeo Dmitry Rybakov - creator, maintainer

About

Memcached client for Crystal language

Resources

License

Stars

Watchers

Forks

Packages

No packages published