Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syohex/emacs-memcached
libmemcached binding of Emacs Lisp
https://github.com/syohex/emacs-memcached
Last synced: about 19 hours ago
JSON representation
libmemcached binding of Emacs Lisp
- Host: GitHub
- URL: https://github.com/syohex/emacs-memcached
- Owner: syohex
- Created: 2016-02-27T14:39:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-01T23:07:58.000Z (almost 9 years ago)
- Last Synced: 2024-11-09T06:08:08.594Z (about 2 months ago)
- Language: C
- Size: 65.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# memcached.el
libmemcached binding of Emacs Lisp. This package is inspired by [mruby-memcached](https://github.com/matsumoto-r/mruby-memcached)
## Screenshot
![memcached](image/memcached.png)
## Interfaces
#### `(memcached-init server)`
Connect to `server` and return memcached state instance.
#### `(memcached-server-add state host port)`
Add server(`host`:`port`) to memcached state.
#### `(memcached-close state)`
Close connection
#### `(memcached-set state key value &optional (expire 0))`
Set `value` related to `key`. Both `key` and `value` are converted into string. If `key-value` pair is already existed, then it is overwritten. `expire` is seconds.
#### `(memcached-add state key value &optional (expire 0))`
Like set, but only stores if the `key` doesn't already exist.
#### `(memcached-get state key)`
Get value related to `key`. If value is not found, then return `nil`.
#### `(memcached-delete state key)`
Delete value related to `key`.