leo_mcerl¶
The mcerl API.
References
Description¶
The mcerl API
Function Index¶
delete/2 | Delete an object from the leo_mcerl. |
get/2 | Retrieve an object from the leo_mcerl. |
items/1 | Retrieve total of cached objects. |
put/3 | Insert an object into the leo_mcerl. |
size/1 | Retrieve size of cached objects. |
start/1 | Launch leo_mcerl. |
stop/1 | Halt the leo_mcerl. |
Function Details¶
delete/2¶
delete(Res, Key) -> ok | {error, any()}
- Res = any()
- Key = binary()
Delete an object from the leo_mcerl
get/2¶
get(Res, Key) -> {ok, binary()} | not_found | {error, any()}
- Res = any()
- Key = binary()
Retrieve an object from the leo_mcerl
items/1¶
items(Res) -> {ok, integer()} | {error, any()}
- Res = any()
Retrieve total of cached objects
put/3¶
put(Res, Key, Value) -> ok | {error, any()}
- Res = any()
- Key = binary()
- Value = binary()
Insert an object into the leo_mcerl