joewilliams /
merle
An Erlang Memcached Client.
39/100 healthLoading repository data…
echou / repository
an Erlang memcached client application
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
An efficient memcached client that simply wraps around libmemcached.
libmemcached 1.0+ should be installed. OTP should be R15B or above.
./rebar compile
a memcached_drv.so is created under priv/lib.
start the application
mcache:start().
or
application:start(mcache).
get
mcache:get(Prefix, Key)
fetches <Prefix>:<Key> from memcached.
undefined if not found.mcache:set)set
mcache:set(Prefix, Key, Value, Type, Timeout)
Type, can be binary, iolist, int or erlang term.raw (binary), native (erlang term, saved in term_to_binary format), int (an integer).default (default expiration: 300 seconds), infinity, {X, seconds}, {X, minutes}, {X, hours}, {X, days}, or an integer (as is).Note 1: no reply is returned for best performance.
Note 2: Type is encoded as memcached protocol field flags: 0 - raw, 100 - native, 103 - int.
delete
mcache:delete(Prefix, Key)
pools
{pools, % defines several pools
[{name,generic}, % pool name
{connection_count,10},
{servers,[{"127.0.0.1:11211",255},{"192.168.1.1:11211",255}]}] % servers and weights
% another pool definition, ....
}
expires
{expires,
[ {prefix1, {PoolName, Timeout1}},
{prefix2, {PoolName, Timeout2}} ]
}
PoolName: is one of the pool names from pools definitions.Timeout: sees the timeout definition of mcache:set function.Selected from shared topics, language and repository description—not editorial ratings.
joewilliams /
An Erlang Memcached Client.
39/100 healthlpgauth /
High-Performance Erlang Memcached Client
56/100 healtharmon /
An Erlang Implementation of the Memcached binary protocol
31/100 healthZhangJianAo /
An erlang memcached impl, and a write cache
29/100 health