File tree 3 files changed +11
-6
lines changed
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ public function delete(): bool
40
40
->delete ($ this );
41
41
}
42
42
43
+ /**
44
+ * @return Driver<TValue>
45
+ */
43
46
protected function resolveDriver (): Driver
44
47
{
45
48
return app ()->make ('cache-driver ' );
Original file line number Diff line number Diff line change 4
4
5
5
namespace EriBloo \CacheObjects \Contracts ;
6
6
7
+ /**
8
+ * @template TValue
9
+ */
7
10
interface Driver
8
11
{
9
12
/**
10
- * @template TValue
11
- *
12
13
* @param TValue $value
13
14
* @param CacheObject<TValue> $cacheObject
14
15
*/
15
16
public function set (mixed $ value , CacheObject $ cacheObject ): string ;
16
17
17
18
/**
18
- * @template TValue
19
- *
20
19
* @param CacheObject<TValue> $cacheObject
21
20
* @return TValue|null
22
21
*/
23
22
public function get (CacheObject $ cacheObject ): mixed ;
24
23
25
24
/**
26
- * @template TValue
27
- *
28
25
* @param CacheObject<TValue> $cacheObject
29
26
*/
30
27
public function delete (CacheObject $ cacheObject ): bool ;
Original file line number Diff line number Diff line change 12
12
use EriBloo \CacheObjects \Events \CacheObjectStored ;
13
13
use Illuminate \Contracts \Cache \Store ;
14
14
15
+ /**
16
+ * @template TValue
17
+ *
18
+ * @implements Driver<TValue>
19
+ */
15
20
final class CacheDriver implements Driver
16
21
{
17
22
public function __construct (
You can’t perform that action at this time.
0 commit comments