blob: 6656c58e44dce88c8107f02c0a0c88119fbd90a9 (
plain) (
tree)
|
|
import MemoryStorage from '../infrastructures/memory-storage';
const FIND_KEYWORD_KEY = 'find-keyword';
export default class FindRepository {
constructor() {
this.cache = new MemoryStorage();
}
getKeyword() {
return Promise.resolve(this.cache.get(FIND_KEYWORD_KEY));
}
setKeyword(keyword) {
this.cache.set(FIND_KEYWORD_KEY, keyword);
return Promise.resolve();
}
}
|