Nefarious Pickle Muncher

    @zero-version/key-value-storage
    TypeScript icon, indicating that this package has built-in type declarations

    9.9.14 • Public • Published

    Key/value storage.

    Usage

    Using an interface allows for multiple implementations, as well as decorator or adapter implementations if needed. See the MemoryKeyValueStore for an example implementation.

    IKeyValueStore

    import type { IKeyValueStore } from '@zero-version/key-value-storage';
    
    export class KeyValueStore implements IKeyValueStore {
      public get(key: string) {
        // Implement
      }
    
      public set(key: string, value: any) {
        // Implement
      }
    
      public remove(key: string) {
        // Implement
      }
    }

    Support

    Are you using a package I've developed and finding it useful? Or have you looked at one of my repositories and learnt something new? If so, please consider buying me a coffee. Thanks!

    Install

    npm i @zero-version/key-value-storage

    DownloadsWeekly Downloads

    2

    Version

    9.9.14

    License

    UNLICENSED

    Unpacked Size

    2.05 kB

    Total Files

    5

    Last publish

    Collaborators

    • andrewcrobertson