@furystack/redis-store

9.0.4 • Public • Published

redis-store

Redis Physical Store implementation for FuryStack. filter() and count() is not supported.

An usage example:

import { join } from 'path'
import { Injector } from '@furystack/inject'
import '@furystack/redis-store'
import { createClient } from 'redis'
import { IPhysicalStore, StoreManager } from '@furystack/core'

class MyModel {
  declare id: number
  declare value: string
}

const myInjector = new Injector()
myInjector.useLogging().setupStores((stores) => stores.useRedis(MyModel, 'id', createClient()))

const myStore = myInjector.getInstance(StoreManager).getStoreFor(MyModel)

/@furystack/redis-store/

    Package Sidebar

    Install

    npm i @furystack/redis-store

    Weekly Downloads

    68

    Version

    9.0.4

    License

    GPL-2.0

    Unpacked Size

    41.9 kB

    Total Files

    24

    Last publish

    Collaborators

    • gallayl