Module m_tkvstore

Simple store for key/value pairs.

Copyright © 2010-2021 Marc Worrell

Behaviours: zotonic_model.

Authors: Marc Worrell (marc@worrell.nl).

Description

Simple store for key/value pairs

Function Index

delete/2Delete a value from the store.
delete/3Delete a value from the store.
get/3Fetch a value from the store.
init/1Ensure that the persistent table is present.
m_get/3Fetch the value for the key from a model source.
put/4Put a value into the store.

Function Details

delete/2

delete(Type, Context) -> any()

Delete a value from the store

delete/3

delete(Type, Key, Context) -> any()

Delete a value from the store

get/3

get(Type, Key, Context) -> any()

Fetch a value from the store

init/1

init(Context) -> any()

Ensure that the persistent table is present

m_get/3

m_get(Rest::list(), Msg::zotonic_model:opt_msg(), Context::z:context()) -> zotonic_model:return()

Fetch the value for the key from a model source

put/4

put(Type, Key, Data, Context) -> any()

Put a value into the store


Generated by EDoc