|
@@ -28,7 +28,7 @@ class HomeCache
|
|
|
*/
|
|
|
public static function getHomePageInfo($packageName, $sex)
|
|
|
{
|
|
|
- $cacheKey = Utils::getCacheKey("home.page", [$packageName, $sex]);
|
|
|
+ $cacheKey = Utils::getCacheKey("home.page", [$packageName]);
|
|
|
$data = Redis::hget($cacheKey, $sex);
|
|
|
if ($data) {
|
|
|
$data = json_decode($data, true);
|
|
@@ -47,7 +47,7 @@ class HomeCache
|
|
|
*/
|
|
|
public static function setHomePageInfo($packageName, $sex, $data, $seconds = 0)
|
|
|
{
|
|
|
- $cacheKey = Utils::getCacheKey("home.page", [$packageName, $sex]);
|
|
|
+ $cacheKey = Utils::getCacheKey("home.page", [$packageName]);
|
|
|
self::setHashData($cacheKey, $sex, $data, $seconds);
|
|
|
}
|
|
|
|
|
@@ -62,7 +62,7 @@ class HomeCache
|
|
|
*/
|
|
|
public static function setRankPageInfo($packageName, $sex, $data, $seconds = 0)
|
|
|
{
|
|
|
- $cacheKey = Utils::getCacheKey("home.rank", [$packageName, $sex]);
|
|
|
+ $cacheKey = Utils::getCacheKey("home.rank", [$packageName]);
|
|
|
self::setHashData($cacheKey, $sex, $data, $seconds);
|
|
|
}
|
|
|
|
|
@@ -76,7 +76,7 @@ class HomeCache
|
|
|
*/
|
|
|
public static function getRankPageInfo($packageName, $sex)
|
|
|
{
|
|
|
- $cacheKey = Utils::getCacheKey("home.rank", [$packageName, $sex]);
|
|
|
+ $cacheKey = Utils::getCacheKey("home.rank", [$packageName]);
|
|
|
return self::getHashData($cacheKey,$sex);
|
|
|
}
|
|
|
|