@@ 74-82 (lines=9) @@ | ||
71 | /** |
|
72 | * @inheritdoc |
|
73 | */ |
|
74 | public function hit() |
|
75 | { |
|
76 | $this->counter = $this->count() + 1; |
|
77 | $item = new CacheCount($this->counter, $this->ttl); |
|
78 | ||
79 | $this->cache->setItem($this->key, $item); |
|
80 | ||
81 | return $this; |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @inheritdoc |
|
@@ 87-95 (lines=9) @@ | ||
84 | /** |
|
85 | * @inheritdoc |
|
86 | */ |
|
87 | public function clear() |
|
88 | { |
|
89 | $this->counter = 0; |
|
90 | $item = new CacheCount($this->counter, $this->ttl); |
|
91 | ||
92 | $this->cache->setItem($this->key, $item); |
|
93 | ||
94 | return $this; |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * @inheritdoc |