Skip to content

Commit 339a55d

Browse files
committed
phpDoc: removed inherited docs
1 parent 57e4046 commit 339a55d

File tree

7 files changed

+0
-177
lines changed

7 files changed

+0
-177
lines changed

src/Caching/Storages/DevNullStorage.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,52 +17,26 @@ class DevNullStorage implements Nette\Caching\IStorage
1717
{
1818
use Nette\SmartObject;
1919

20-
/**
21-
* Read from cache.
22-
* @param string
23-
* @return mixed
24-
*/
2520
public function read($key)
2621
{
2722
}
2823

2924

30-
/**
31-
* Prevents item reading and writing. Lock is released by write() or remove().
32-
* @param string
33-
* @return void
34-
*/
3525
public function lock($key)
3626
{
3727
}
3828

3929

40-
/**
41-
* Writes item into the cache.
42-
* @param string
43-
* @param mixed
44-
* @return void
45-
*/
4630
public function write($key, $data, array $dependencies)
4731
{
4832
}
4933

5034

51-
/**
52-
* Removes item from the cache.
53-
* @param string
54-
* @return void
55-
*/
5635
public function remove($key)
5736
{
5837
}
5938

6039

61-
/**
62-
* Removes items from the cache by conditions & garbage collector.
63-
* @param array conditions
64-
* @return void
65-
*/
6640
public function clean(array $conditions)
6741
{
6842
}

src/Caching/Storages/FileStorage.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ public function __construct($dir, IJournal $journal = null)
7878
}
7979

8080

81-
/**
82-
* Read from cache.
83-
* @param string
84-
* @return mixed
85-
*/
8681
public function read($key)
8782
{
8883
$meta = $this->readMetaAndLock($this->getCacheFile($key), LOCK_SH);
@@ -135,11 +130,6 @@ private function verify(array $meta)
135130
}
136131

137132

138-
/**
139-
* Prevents item reading and writing. Lock is released by write() or remove().
140-
* @param string
141-
* @return void
142-
*/
143133
public function lock($key)
144134
{
145135
$cacheFile = $this->getCacheFile($key);
@@ -154,12 +144,6 @@ public function lock($key)
154144
}
155145

156146

157-
/**
158-
* Writes item into the cache.
159-
* @param string
160-
* @param mixed
161-
* @return void
162-
*/
163147
public function write($key, $data, array $dp)
164148
{
165149
$meta = [
@@ -239,23 +223,13 @@ public function write($key, $data, array $dp)
239223
}
240224

241225

242-
/**
243-
* Removes item from the cache.
244-
* @param string
245-
* @return void
246-
*/
247226
public function remove($key)
248227
{
249228
unset($this->locks[$key]);
250229
$this->delete($this->getCacheFile($key));
251230
}
252231

253232

254-
/**
255-
* Removes items from the cache by conditions & garbage collector.
256-
* @param array conditions
257-
* @return void
258-
*/
259233
public function clean(array $conditions)
260234
{
261235
$all = !empty($conditions[Cache::ALL]);

src/Caching/Storages/MemcachedStorage.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ public function getConnection()
7676
}
7777

7878

79-
/**
80-
* Read from cache.
81-
* @param string
82-
* @return mixed
83-
*/
8479
public function read($key)
8580
{
8681
$key = urlencode($this->prefix . $key);
@@ -110,22 +105,11 @@ public function read($key)
110105
}
111106

112107

113-
/**
114-
* Prevents item reading and writing. Lock is released by write() or remove().
115-
* @param string
116-
* @return void
117-
*/
118108
public function lock($key)
119109
{
120110
}
121111

122112

123-
/**
124-
* Writes item into the cache.
125-
* @param string
126-
* @param mixed
127-
* @return void
128-
*/
129113
public function write($key, $data, array $dp)
130114
{
131115
if (isset($dp[Cache::ITEMS])) {
@@ -160,22 +144,12 @@ public function write($key, $data, array $dp)
160144
}
161145

162146

163-
/**
164-
* Removes item from the cache.
165-
* @param string
166-
* @return void
167-
*/
168147
public function remove($key)
169148
{
170149
$this->memcache->delete(urlencode($this->prefix . $key), 0);
171150
}
172151

173152

174-
/**
175-
* Removes items from the cache by conditions & garbage collector.
176-
* @param array conditions
177-
* @return void
178-
*/
179153
public function clean(array $conditions)
180154
{
181155
if (!empty($conditions[Cache::ALL])) {

src/Caching/Storages/MemoryStorage.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,55 +21,29 @@ class MemoryStorage implements Nette\Caching\IStorage
2121
private $data = [];
2222

2323

24-
/**
25-
* Read from cache.
26-
* @param string
27-
* @return mixed
28-
*/
2924
public function read($key)
3025
{
3126
return isset($this->data[$key]) ? $this->data[$key] : null;
3227
}
3328

3429

35-
/**
36-
* Prevents item reading and writing. Lock is released by write() or remove().
37-
* @param string
38-
* @return void
39-
*/
4030
public function lock($key)
4131
{
4232
}
4333

4434

45-
/**
46-
* Writes item into the cache.
47-
* @param string
48-
* @param mixed
49-
* @return void
50-
*/
5135
public function write($key, $data, array $dependencies)
5236
{
5337
$this->data[$key] = $data;
5438
}
5539

5640

57-
/**
58-
* Removes item from the cache.
59-
* @param string
60-
* @return void
61-
*/
6241
public function remove($key)
6342
{
6443
unset($this->data[$key]);
6544
}
6645

6746

68-
/**
69-
* Removes items from the cache by conditions & garbage collector.
70-
* @param array conditions
71-
* @return void
72-
*/
7347
public function clean(array $conditions)
7448
{
7549
if (!empty($conditions[Nette\Caching\Cache::ALL])) {

src/Caching/Storages/NewMemcachedStorage.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ public function getConnection()
7676
}
7777

7878

79-
/**
80-
* Read from cache.
81-
* @param string
82-
* @return mixed
83-
*/
8479
public function read($key)
8580
{
8681
$key = urlencode($this->prefix . $key);
@@ -110,11 +105,6 @@ public function read($key)
110105
}
111106

112107

113-
/**
114-
* Reads from cache in bulk.
115-
* @param string
116-
* @return array key => value pairs, missing items are omitted
117-
*/
118108
public function bulkRead(array $keys)
119109
{
120110
$prefixedKeys = array_map(function ($key) {
@@ -143,22 +133,11 @@ public function bulkRead(array $keys)
143133
}
144134

145135

146-
/**
147-
* Prevents item reading and writing. Lock is released by write() or remove().
148-
* @param string
149-
* @return void
150-
*/
151136
public function lock($key)
152137
{
153138
}
154139

155140

156-
/**
157-
* Writes item into the cache.
158-
* @param string
159-
* @param mixed
160-
* @return void
161-
*/
162141
public function write($key, $data, array $dp)
163142
{
164143
if (isset($dp[Cache::ITEMS])) {
@@ -193,22 +172,12 @@ public function write($key, $data, array $dp)
193172
}
194173

195174

196-
/**
197-
* Removes item from the cache.
198-
* @param string
199-
* @return void
200-
*/
201175
public function remove($key)
202176
{
203177
$this->memcached->delete(urlencode($this->prefix . $key), 0);
204178
}
205179

206180

207-
/**
208-
* Removes items from the cache by conditions & garbage collector.
209-
* @param array conditions
210-
* @return void
211-
*/
212181
public function clean(array $conditions)
213182
{
214183
if (!empty($conditions[Cache::ALL])) {

src/Caching/Storages/SQLiteJournal.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ private function open()
6464
}
6565

6666

67-
/**
68-
* Writes entry information into the journal.
69-
* @param string
70-
* @param array
71-
* @return void
72-
*/
7367
public function write($key, array $dependencies)
7468
{
7569
if (!$this->pdo) {
@@ -97,11 +91,6 @@ public function write($key, array $dependencies)
9791
}
9892

9993

100-
/**
101-
* Cleans entries from journal.
102-
* @param array
103-
* @return array|null removed items or null when performing a full cleanup
104-
*/
10594
public function clean(array $conditions)
10695
{
10796
if (!$this->pdo) {

src/Caching/Storages/SQLiteStorage.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ public function __construct($path)
5050
}
5151

5252

53-
/**
54-
* Read from cache.
55-
* @param string
56-
* @return mixed
57-
*/
5853
public function read($key)
5954
{
6055
$stmt = $this->pdo->prepare('SELECT data, slide FROM cache WHERE key=? AND (expire IS NULL OR expire >= ?)');
@@ -68,11 +63,6 @@ public function read($key)
6863
}
6964

7065

71-
/**
72-
* Reads from cache in bulk.
73-
* @param string
74-
* @return array key => value pairs, missing items are omitted
75-
*/
7666
public function bulkRead(array $keys)
7767
{
7868
$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,22 +83,11 @@ public function bulkRead(array $keys)
9383
}
9484

9585

96-
/**
97-
* Prevents item reading and writing. Lock is released by write() or remove().
98-
* @param string
99-
* @return void
100-
*/
10186
public function lock($key)
10287
{
10388
}
10489

10590

106-
/**
107-
* Writes item into the cache.
108-
* @param string
109-
* @param mixed
110-
* @return void
111-
*/
11291
public function write($key, $data, array $dependencies)
11392
{
11493
$expire = isset($dependencies[Cache::EXPIRATION]) ? $dependencies[Cache::EXPIRATION] + time() : null;
@@ -130,23 +109,13 @@ public function write($key, $data, array $dependencies)
130109
}
131110

132111

133-
/**
134-
* Removes item from the cache.
135-
* @param string
136-
* @return void
137-
*/
138112
public function remove($key)
139113
{
140114
$this->pdo->prepare('DELETE FROM cache WHERE key=?')
141115
->execute([$key]);
142116
}
143117

144118

145-
/**
146-
* Removes items from the cache by conditions & garbage collector.
147-
* @param array conditions
148-
* @return void
149-
*/
150119
public function clean(array $conditions)
151120
{
152121
if (!empty($conditions[Cache::ALL])) {

0 commit comments

Comments
 (0)