@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
26 lines • 780 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class EventCacheService {
settings;
constructor(settings) {
this.settings = settings;
this.settings.setFile('event-cache.json');
}
getLastSyncOptions() {
return this.settings.get('events.lastSync');
}
setLastSyncCache(options) {
this.settings.set('events.lastSync', options);
}
setListenerCache(value) {
this.settings.set('events.listenerCacheKeys', value);
}
clearListenerCache() {
this.settings.unset('events.listenerCacheKeys');
}
getListenerCache() {
return this.settings.get('events.listenerCacheKeys');
}
}
exports.default = EventCacheService;
//# sourceMappingURL=EventCacheService.js.map