@baldim/plugin-cache
v0.1.1
Published
Memory, filesystem, Redis, object-storage, partition-aware, and multi-tier caching for Baldim.
Downloads
150
Readme
@baldim/plugin-cache
Caching for Baldim resources with memory, filesystem, Redis, object-storage, partition-aware filesystem, and multi-tier drivers.
import { Baldim } from '@baldim/core';
import { CachePlugin } from '@baldim/plugin-cache';
const database = new Baldim({ connectionString: 'memory://app' });
await database.connect();
await database.usePlugin(new CachePlugin({ driver: 'memory' }));The plugin package owns its cache-driver integrations. Install ioredis in the
application when using the Redis driver. The object-storage driver consumes the
public storage client already attached to the Baldim database.
