File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export function sqliteCacheAdapter<Value = unknown>(
1818 database : Database
1919 } ,
2020) : Cache < Value > {
21+ // We cannot prepare statements in `sqlite` as it is an asynchronous operation,
22+ // and thus would require making this init function async
2123 return {
2224 name : options . name ?? "sqlite" ,
2325 get : async ( key ) => {
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export function sqlite3CacheAdapter<Value = unknown>(
1818 database : Database
1919 } ,
2020) : Cache < Value > {
21+ // We cannot prepare statements in `sqlite3` as it is an asynchronous operation,
22+ // and thus would require making this init function async
2123 return {
2224 name : options . name ?? "sqlite3" ,
2325 get : async ( key ) => {
You can’t perform that action at this time.
0 commit comments