Skip to content

Commit ef48fa9

Browse files
committed
marked @deprecated methods
1 parent 0dcff13 commit ef48fa9

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

src/Caching/Cache.php

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,7 @@ protected function generateKey($key)
268268

269269

270270
/**
271-
* Inserts (replaces) item into the cache (\ArrayAccess implementation).
272-
* @param mixed key
273-
* @param mixed
274-
* @return void
275-
* @throws Nette\InvalidArgumentException
271+
* @deprecated
276272
*/
277273
public function offsetSet($key, $data)
278274
{
@@ -281,10 +277,7 @@ public function offsetSet($key, $data)
281277

282278

283279
/**
284-
* Retrieves the specified item from the cache or NULL if the key is not found (\ArrayAccess implementation).
285-
* @param mixed key
286-
* @return mixed|NULL
287-
* @throws Nette\InvalidArgumentException
280+
* @deprecated
288281
*/
289282
public function offsetGet($key)
290283
{
@@ -298,10 +291,7 @@ public function offsetGet($key)
298291

299292

300293
/**
301-
* Exists item in cache? (\ArrayAccess implementation).
302-
* @param mixed key
303-
* @return bool
304-
* @throws Nette\InvalidArgumentException
294+
* @deprecated
305295
*/
306296
public function offsetExists($key)
307297
{
@@ -311,10 +301,7 @@ public function offsetExists($key)
311301

312302

313303
/**
314-
* Removes the specified item from the cache.
315-
* @param mixed key
316-
* @return void
317-
* @throws Nette\InvalidArgumentException
304+
* @deprecated
318305
*/
319306
public function offsetUnset($key)
320307
{
@@ -323,8 +310,7 @@ public function offsetUnset($key)
323310

324311

325312
/**
326-
* Discards the internal cache used by ArrayAccess.
327-
* @return void
313+
* @deprecated
328314
*/
329315
public function release()
330316
{

0 commit comments

Comments
 (0)