Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`.