stores
    Preparing search index...

    Various Datastore implementations are available.

    An base store is made available to make implementing your own datastore easier:

    import { BaseDatastore } from 'datastore-core'

    class MyDatastore extends BaseDatastore {
    constructor () {
    super()
    }

    async put (key, val) {
    // your implementation here
    }

    async get (key) {
    // your implementation here
    }

    // etc...
    }

    See the MemoryDatastore for an example of how it is used.

    import { Key } from 'interface-datastore'
    import {
    MemoryStore,
    MountStore
    } from 'datastore-core'

    const store = new MountStore({prefix: new Key('/a'), datastore: new MemoryStore()})

    A datastore that does not store any data.

    import { BlackHoleDatastore } from 'datastore-core/black-hole'

    const store = new BlackHoleDatastore()

    Interfaces

    KeyTransform
    Shard

    References

    BaseDatastore → BaseDatastore
    KeyTransformDatastore → KeyTransformDatastore
    MemoryDatastore → MemoryDatastore
    MountDatastore → MountDatastore
    NamespaceDatastore → NamespaceDatastore
    shard → shard
    ShardingDatastore → ShardingDatastore
    TieredDatastore → TieredDatastore