Module ldclient_storage_cache

ldclient_storage_cache module.

Description

ldclient_storage_cache module

Provides implementation of storage cache using Erlang map.

Function Index

create/4
delete/5
empty/4
get/5
init/3
terminate/1
upsert/5
upsert_clean/5

Function Details

create/4

create(Tag::atom(), Bucket::atom(), ServerRef::atom(), StorageBackend::atom()) -> ok | {error, already_exists, string()}

delete/5

delete(Tag::atom(), Bucket::atom(), Key::binary(), ServerRef::atom(), StorageBackend::atom()) -> ok | {error, bucket_not_found, string()}

empty/4

empty(Tag::atom(), Bucket::atom(), ServerRef::atom(), StorageBackend::atom()) -> ok | {error, bucket_not_found, string()}

get/5

get(Tag::atom(), Bucket::atom(), Key::binary(), ServerRef::atom(), StorageBackend::atom()) -> [{Key::binary(), Value::any()}] | {error, bucket_not_found, string()}

init/3

init(SupRef::atom(), Tag::atom(), Options::list()) -> ok

terminate/1

terminate(Tag::atom()) -> ok

upsert/5

upsert(Tag::atom(), Bucket::atom(), Items::#{Key::binary() => Value::any()}, ServerRef::atom(), StorageBackend::atom()) -> ok | {error, bucket_not_found, string()}

upsert_clean/5

upsert_clean(Tag::atom(), Bucket::atom(), Items::#{Key::binary() => Value::any()}, ServerRef::atom(), StorageBackend::atom()) -> ok | {error, bucket_not_found, string()}


Generated by EDoc