Skip to content

Commit aced223

Browse files
committed
Added more docblocks to Cache adapters
1 parent 9f7b1fc commit aced223

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

src/Flysystem/Cache/Memcached.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Memcached extends AbstractCache
1212
protected $key;
1313

1414
/**
15-
* @var int|null $expire expiration time
15+
* @var int|null $expire seconds until cache expiration
1616
*/
1717
protected $expire;
1818

@@ -26,7 +26,7 @@ class Memcached extends AbstractCache
2626
*
2727
* @param \Memcached $memcached
2828
* @param string $key storage key
29-
* @param int|null $expire expire time
29+
* @param int|null $expire seconds until cache expiration
3030
*/
3131
public function __construct(NativeMemcached $memcached, $key = 'flysystem', $expire = null)
3232
{

src/Flysystem/Cache/Memory.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@
44

55
class Memory extends AbstractCache
66
{
7+
/**
8+
* {@inheritdoc}
9+
*/
710
public function save()
811
{
912
// There is nothing to save
1013
}
1114

15+
/**
16+
* {@inheritdoc}
17+
*/
1218
public function load()
1319
{
1420
// There is nothing to load
1521
}
16-
17-
public function flush()
18-
{
19-
clearstatcache();
20-
21-
parent::flush();
22-
}
2322
}

src/Flysystem/Cache/Predis.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class Predis extends Memory
2424
/**
2525
* Constructor
2626
*
27-
* @param \Predis\Client $client predis client
28-
* @param string $key storage key
29-
* @param int|null $expire seconds until cache expiration
27+
* @param \Predis\Client $client predis client
28+
* @param string $key storage key
29+
* @param int|null $expire seconds until cache expiration
3030
*/
3131
public function __construct(Client $client = null, $key = 'flysystem', $expire = null)
3232
{
@@ -35,6 +35,9 @@ public function __construct(Client $client = null, $key = 'flysystem', $expire =
3535
$this->expire = $expire;
3636
}
3737

38+
/**
39+
* {@inheritdoc}
40+
*/
3841
public function load()
3942
{
4043
$contents = $this->client->get($this->key);
@@ -44,6 +47,9 @@ public function load()
4447
}
4548
}
4649

50+
/**
51+
* {@inheritdoc}
52+
*/
4753
public function save()
4854
{
4955
$contents = $this->getForStorage();

0 commit comments

Comments
 (0)