Skip to content

Commit 363a68f

Browse files
committed
refactor: lint error
1 parent fb7e359 commit 363a68f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/bentocache/src/drivers/memory.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import { bytes } from '@julr/utils/string/bytes'
33
import { InvalidArgumentsException } from '@poppinss/exception'
44

55
import { BaseDriver } from './base_driver.js'
6-
import type {
7-
CreateDriverResult,
8-
L1CacheDriver,
9-
MemoryConfig as MemoryConfig,
10-
} from '../types/main.js'
6+
import type { CreateDriverResult, L1CacheDriver, MemoryConfig } from '../types/main.js'
117

128
/**
139
* Create a new memory driver
@@ -103,7 +99,7 @@ export class MemoryDriver extends BaseDriver implements L1CacheDriver {
10399
/**
104100
* Remove all items from the cache
105101
*/
106-
async clear() {
102+
clear() {
107103
for (const key of this.#cache.keys()) {
108104
if (key.startsWith(`${this.prefix}:`)) {
109105
this.#cache.delete(key)

0 commit comments

Comments
 (0)