Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/comandeo/crystal-memcached
Memcached client for Crystal language
https://github.com/comandeo/crystal-memcached
Last synced: 6 days ago
JSON representation
Memcached client for Crystal language
- Host: GitHub
- URL: https://github.com/comandeo/crystal-memcached
- Owner: comandeo
- License: mit
- Created: 2015-05-16T21:43:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-08-31T16:24:45.000Z (over 1 year ago)
- Last Synced: 2024-11-29T12:54:30.484Z (13 days ago)
- Language: Crystal
- Size: 41 KB
- Stars: 35
- Watchers: 3
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-crystal - crystal-memcached - Implementation of a memcached client (Caching)
- awesome-crystal - crystal-memcached - Implementation of a memcached client (Caching)
- awesome-crystal - crystal-memcached - Implementation of a memcached client (Caching)
README
# Crystal Memcached
[![Crystal CI](https://github.com/comandeo/crystal-memcached/actions/workflows/crystal.yml/badge.svg)](https://github.com/comandeo/crystal-memcached/actions/workflows/crystal.yml)
Pure Crystal implementation of a Memcached client.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
memcached:
github: comandeo/crystal-memcached
```## Usage
```crystal
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](https://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Get,_Get_Quietly,_Get_Key,_Get_Key_Quietly) 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](https://github.com/comandeo) Dmitry Rybakov - creator, maintainer