Memcache.start_link
start_link
, go back to Memcache module for more information.
Specs
start_link(Keyword.t(), Keyword.t()) :: GenServer.on_start()
Creates a connection using Memcache.Connection.start_link/2
Connection Options
This is a superset of the connection options accepted by the
Memcache.Connection.start_link/2
. The following list specifies the
additional options.
:ttl
- (integer) a default expiration time in seconds. This value will be used if the:ttl
value is not specified for a operation. Defaults to0
(means forever).:namespace
- (string) prepend each key with the given value.:key_coder
- ({module, function}) Used to transform the key completely. The function needs to accept one argument, the key and return a new key.:coder
- (module | {module, options}) Can be either a module or tuple contains the module and options. Defaults to{Memcache.Coder.Raw, []}
.
Options
The second option is passed directly to the underlying
GenServer.start_link/3
, so it can be used to create named process.