diff options
Diffstat (limited to 'src/background/repositories')
-rw-r--r-- | src/background/repositories/FindRepository.ts | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/background/repositories/FindRepository.ts b/src/background/repositories/FindRepository.ts deleted file mode 100644 index 813e065..0000000 --- a/src/background/repositories/FindRepository.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { injectable } from "tsyringe"; -import MemoryStorage from "../infrastructures/MemoryStorage"; - -const FIND_KEYWORD_KEY = "find-keyword"; - -@injectable() -export default class FindRepository { - private cache: MemoryStorage; - - constructor() { - this.cache = new MemoryStorage(); - } - - getKeyword(): Promise<string> { - return Promise.resolve(this.cache.get(FIND_KEYWORD_KEY)); - } - - setKeyword(keyword: string): Promise<void> { - this.cache.set(FIND_KEYWORD_KEY, keyword); - return Promise.resolve(); - } -} |