Skip to content

Commit

Permalink
feat: types for Cache Store
Browse files Browse the repository at this point in the history
  • Loading branch information
shakkernerd committed Dec 21, 2024
1 parent dfab4c1 commit c5fa929
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,12 @@ export type CacheOptions = {
expires?: number;
};

export enum CacheStore {
REDIS = "redis",
DATABASE = "database",
FILESYSTEM = "filesystem",
}

export interface ICacheManager {
get<T = unknown>(key: string): Promise<T | undefined>;
set<T>(key: string, value: T, options?: CacheOptions): Promise<void>;
Expand Down

0 comments on commit c5fa929

Please sign in to comment.