mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
fix offset
This commit is contained in:
parent
b0b785bcb0
commit
0fd5a91a2e
|
|
@ -306,9 +306,9 @@ class RedisCache extends ConnectionAbstract
|
|||
{
|
||||
switch ($type) {
|
||||
case CacheValueType::_INT:
|
||||
return (int) \substr($raw, $expireEnd + 1);
|
||||
return (int) \substr($raw, $start + 1);
|
||||
case CacheValueType::_FLOAT:
|
||||
return (float) \substr($raw, $expireEnd + 1);
|
||||
return (float) \substr($raw, $start + 1);
|
||||
case CacheValueType::_BOOL:
|
||||
return (bool) \substr($raw, $start + 1);
|
||||
case CacheValueType::_STRING:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user