You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Caching/Storages/SQLiteStorage.php
-20Lines changed: 0 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,6 @@ public function __construct($path)
52
52
}
53
53
54
54
55
-
/**
56
-
* Read from cache.
57
-
* @return mixed
58
-
*/
59
55
publicfunctionread(string$key)
60
56
{
61
57
$stmt = $this->pdo->prepare('SELECT data, slide FROM cache WHERE key=? AND (expire IS NULL OR expire >= ?)');
@@ -69,10 +65,6 @@ public function read(string $key)
69
65
}
70
66
71
67
72
-
/**
73
-
* Reads from cache in bulk.
74
-
* @return array key => value pairs, missing items are omitted
75
-
*/
76
68
publicfunctionbulkRead(array$keys): array
77
69
{
78
70
$stmt = $this->pdo->prepare('SELECT key, data, slide FROM cache WHERE key IN (?' . str_repeat(',?', count($keys) - 1) . ') AND (expire IS NULL OR expire >= ?)');
@@ -93,17 +85,11 @@ public function bulkRead(array $keys): array
93
85
}
94
86
95
87
96
-
/**
97
-
* Prevents item reading and writing. Lock is released by write() or remove().
0 commit comments