Abandoning sqlite cache
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
import Keyv from 'keyv'
|
||||
import KeyvSqlite from "@keyv/sqlite";
|
||||
|
||||
const sqlite = new KeyvSqlite()
|
||||
|
||||
const cacheOptions = {
|
||||
namespace: 'settings',
|
||||
uri: 'sqlite://database.sqlite',
|
||||
}
|
||||
const cache = new Keyv(cacheOptions);
|
||||
|
||||
export const getSetting = async (key) => {
|
||||
return await cache.get(key)
|
||||
}
|
||||
|
||||
export const setSetting = async (key, value) => {
|
||||
return await cache.set(key, value)
|
||||
}
|
||||
Reference in New Issue
Block a user