Module ldclient_storage_redis

ldclient_storage_redis module.

Behaviours: ldclient_storage_engine.

Description

ldclient_storage_redis module

Provides implementation of Redis storage backend behavior.

Function Index

all/2
create/2
delete/3
empty/2
get/3
init/3
terminate/1
upsert/3
upsert_clean/3

Function Details

all/2

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

create/2

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

delete/3

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

empty/2

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

get/3

get(Tag::atom(), Bucket::atom(), Key::binary()) -> [{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/3

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

upsert_clean/3

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


Generated by EDoc