~umgeher/utfs-core

10cd30eae3524450d1a7e83dd4c7c1dfb5f5fd69 — Umgeher Torgersen 11 months ago e65dfa7
tl settings module
1 files changed, 14 insertions(+), 0 deletions(-)

A src/utfs_core_tl_settings.erl
A src/utfs_core_tl_settings.erl => src/utfs_core_tl_settings.erl +14 -0
@@ 0,0 1,14 @@
-module(utfs_core_tl_settings).

-export([
         get/2,
         set/3
        ]).

get(Timeline, <<"_settings:", _/binary>> = Key) when is_binary(Timeline) ->
    {ok, UID} = utfs_core:tl_uid(Timeline),
    utfs_core:kv_get(UID, Key).

set(Timeline, <<"_settings:", _/binary>> = Key, Value) when is_binary(Timeline) ->
    {ok, UID} = utfs_core:tl_uid(Timeline),
    utfs_core:kv_set(UID, Key, Value).