Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5e6b2c57c7
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (27 sloc) 0.375 kb
-module(kv8_pts).
-export([start/1, stop/1, init/1, free/1, put/3, get/2]).
%%
%%
start(Opts) ->
pts:new(kv8, [{factory, fun pts_cache_sup:spawn/2} | Opts]),
kv8.
%%
%%
stop(Ref) ->
pts:drop(Ref).
%%
%%
init(Ref) ->
Ref.
%%
%%
free(Ref) ->
Ref.
%%
%%
put(Key, Val, Ref) ->
pts:put(Ref, Key, Val).
%%
%%
get(Key, Ref) ->
pts:get(Ref, Key).
Jump to Line
Something went wrong with that request. Please try again.