Skip to content

About

A key value store with subscription for listening to update on the value

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Reactive store

A key value store with subscription for listening to update on the value

usage

    const userStore = new Store();
    userStore.save("user_id_1", "samuel jackson")

    const unsubscribe = userStore.subscribe(
        "user_id_1",
        (value) => {...}, // update function
        () => {} // cleanup function
    )

    userStore.save("user_id_1", "samuel l jackson")
    
    unsubscribe();

    userStore.remove("user_id_1");

About

A key value store with subscription for listening to update on the value

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages