We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7e359 commit 363a68fCopy full SHA for 363a68f
1 file changed
packages/bentocache/src/drivers/memory.ts
@@ -3,11 +3,7 @@ import { bytes } from '@julr/utils/string/bytes'
3
import { InvalidArgumentsException } from '@poppinss/exception'
4
5
import { BaseDriver } from './base_driver.js'
6
-import type {
7
- CreateDriverResult,
8
- L1CacheDriver,
9
- MemoryConfig as MemoryConfig,
10
-} from '../types/main.js'
+import type { CreateDriverResult, L1CacheDriver, MemoryConfig } from '../types/main.js'
11
12
/**
13
* Create a new memory driver
@@ -103,7 +99,7 @@ export class MemoryDriver extends BaseDriver implements L1CacheDriver {
103
99
104
100
* Remove all items from the cache
105
101
*/
106
- async clear() {
102
+ clear() {
107
for (const key of this.#cache.keys()) {
108
if (key.startsWith(`${this.prefix}:`)) {
109
this.#cache.delete(key)
0 commit comments