Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache Returns Types #4630

Merged
merged 2 commits into from
May 1, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update handler docblocks
  • Loading branch information
MGatner committed May 1, 2021
commit 9fbbe896e6b870f0123d09c22263c7f19602baf9
6 changes: 3 additions & 3 deletions system/Cache/Handlers/DummyHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function remember(string $key, int $ttl, Closure $callback)
* @param mixed $value The data to save
* @param integer $ttl Time To Live, in seconds (default 60)
*
* @return mixed
* @return boolean Success or failure
*/
public function save(string $key, $value, int $ttl = 60)
{
Expand All @@ -79,7 +79,7 @@ public function save(string $key, $value, int $ttl = 60)
*
* @param string $key Cache item name
*
* @return boolean
* @return boolean Success or failure
*/
public function delete(string $key)
{
Expand Down Expand Up @@ -135,7 +135,7 @@ public function decrement(string $key, int $offset = 1)
/**
* Will delete all items in the entire cache.
*
* @return boolean
* @return boolean Success or failure
*/
public function clean()
{
Expand Down
6 changes: 3 additions & 3 deletions system/Cache/Handlers/FileHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function get(string $key)
* @param mixed $value The data to save
* @param integer $ttl Time To Live, in seconds (default 60)
*
* @return mixed
* @return boolean Success or failure
*/
public function save(string $key, $value, int $ttl = 60)
{
Expand Down Expand Up @@ -149,7 +149,7 @@ public function save(string $key, $value, int $ttl = 60)
*
* @param string $key Cache item name
*
* @return boolean
* @return boolean Success or failure
*/
public function delete(string $key)
{
Expand Down Expand Up @@ -253,7 +253,7 @@ public function decrement(string $key, int $offset = 1)
/**
* Will delete all items in the entire cache.
*
* @return boolean
* @return boolean Success or failure
*/
public function clean()
{
Expand Down
6 changes: 3 additions & 3 deletions system/Cache/Handlers/MemcachedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public function get(string $key)
* @param mixed $value The data to save
* @param integer $ttl Time To Live, in seconds (default 60)
*
* @return mixed
* @return boolean Success or failure
*/
public function save(string $key, $value, int $ttl = 60)
{
Expand Down Expand Up @@ -238,7 +238,7 @@ public function save(string $key, $value, int $ttl = 60)
*
* @param string $key Cache item name
*
* @return boolean
* @return boolean Success or failure
*/
public function delete(string $key)
{
Expand Down Expand Up @@ -313,7 +313,7 @@ public function decrement(string $key, int $offset = 1)
/**
* Will delete all items in the entire cache.
*
* @return boolean
* @return boolean Success or failure
*/
public function clean()
{
Expand Down
6 changes: 3 additions & 3 deletions system/Cache/Handlers/PredisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function get(string $key)
* @param mixed $value The data to save
* @param integer $ttl Time To Live, in seconds (default 60)
*
* @return mixed
* @return boolean Success or failure
*/
public function save(string $key, $value, int $ttl = 60)
{
Expand Down Expand Up @@ -176,7 +176,7 @@ public function save(string $key, $value, int $ttl = 60)
*
* @param string $key Cache item name
*
* @return boolean
* @return boolean Success or failure
*/
public function delete(string $key)
{
Expand Down Expand Up @@ -242,7 +242,7 @@ public function decrement(string $key, int $offset = 1)
/**
* Will delete all items in the entire cache.
*
* @return boolean
* @return boolean Success or failure
*/
public function clean()
{
Expand Down
6 changes: 3 additions & 3 deletions system/Cache/Handlers/RedisHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function get(string $key)
* @param mixed $value The data to save
* @param integer $ttl Time To Live, in seconds (default 60)
*
* @return mixed
* @return boolean Success or failure
*/
public function save(string $key, $value, int $ttl = 60)
{
Expand Down Expand Up @@ -212,7 +212,7 @@ public function save(string $key, $value, int $ttl = 60)
*
* @param string $key Cache item name
*
* @return boolean
* @return boolean Success or failure
*/
public function delete(string $key)
{
Expand Down Expand Up @@ -288,7 +288,7 @@ public function decrement(string $key, int $offset = 1)
/**
* Will delete all items in the entire cache.
*
* @return boolean
* @return boolean Success or failure
*/
public function clean()
{
Expand Down
6 changes: 3 additions & 3 deletions system/Cache/Handlers/WincacheHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function get(string $key)
* @param mixed $value The data to save
* @param integer $ttl Time To Live, in seconds (default 60)
*
* @return mixed
* @return boolean Success or failure
*
* @codeCoverageIgnore
*/
Expand All @@ -101,7 +101,7 @@ public function save(string $key, $value, int $ttl = 60)
*
* @param string $key Cache item name
*
* @return boolean
* @return boolean Success or failure
*
* @codeCoverageIgnore
*/
Expand Down Expand Up @@ -177,7 +177,7 @@ public function decrement(string $key, int $offset = 1)
/**
* Will delete all items in the entire cache.
*
* @return boolean
* @return boolean Success or failure
*
* @codeCoverageIgnore
*/
Expand Down