import { BaseDriver } from '../base_driver.js'; import { a as CacheDriver, f as DatabaseAdapter, h as DatabaseConfig } from '../../../bento_cache-KhHDdh3u.js'; import '@poppinss/exception'; import '@boringnode/bus/types/main'; import '@julr/utils/logger'; import 'knex'; import 'kysely'; import '@aws-sdk/client-dynamodb'; import 'orchid-orm'; import 'ioredis'; /** * A store that use a database to store cache entries * * You should provide an adapter that will handle the database interactions */ declare class DatabaseDriver extends BaseDriver implements CacheDriver { #private; type: "l2"; constructor(adapter: DatabaseAdapter, config: DatabaseConfig, isNamespace?: boolean); /** * Returns a new instance of the driver namespaced */ namespace(namespace: string): any; /** * Get a value from the cache */ get(key: string): Promise; /** * Get the value of a key and delete it * * Returns the value if the key exists, undefined otherwise */ pull(key: string): Promise; /** * Set a value in the cache * Returns true if the value was set, false otherwise */ set(key: string, value: any, ttl?: number): Promise; /** * Remove all items from the cache */ clear(): Promise; /** * Delete a key from the cache * Returns true if the key was deleted, false otherwise */ delete(key: string): Promise; /** * Delete multiple keys from the cache */ deleteMany(keys: string[]): Promise; /** * Disconnect from the database */ disconnect(): Promise; /** * Manually prune expired cache entries. */ prune(): Promise; } export { DatabaseDriver };