Skip to content

Commit

Permalink
add IAsyncCacheStore
Browse files Browse the repository at this point in the history
  • Loading branch information
fostertheweb committed Jul 9, 2024
1 parent 16b0339 commit bd43269
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/caching/IAsyncCacheStore.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface IAsyncCacheStore {
get(key: string): Promise<string | null>;
set(key: string, value: string): Promise<void>;
remove(key: string): Promise<void>;
}
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import IAuthStrategy, { emptyAccessToken } from "./auth/IAuthStrategy.js";
import ProvidedAccessTokenStrategy from "./auth/ProvidedAccessTokenStrategy.js";
import GenericCache from "./caching/GenericCache.js";
import { ICacheStore } from "./caching/ICacheStore.js";
import { IAsyncCacheStore } from "./caching/IAsyncCacheStore.js";
import InMemoryCachingStrategy from "./caching/InMemoryCachingStrategy.js";
import LocalStorageCachingStrategy from "./caching/LocalStorageCachingStrategy.js";
import ConsoleLoggingErrorHandler from "./errorhandling/ConsoleLoggingErrorHandler.js";
Expand Down Expand Up @@ -33,4 +34,4 @@ export {

export type * from "./types.js";

export type { IAuthStrategy, ICacheStore };
export type { IAuthStrategy, ICacheStore, IAsyncCacheStore };

0 comments on commit bd43269

Please sign in to comment.