protected function periodsSync()
    {
        foreach ($this->periods as $period) {
            $periodKey = $this->keys->period($period);

            if ($this->noExpiration($periodKey)) {
                $expireInSeconds = $this->newExpiration($period);
                $this->redis->incrby($periodKey . '_total', 0);
                $this->redis->zincrby($periodKey, 0, 0);
                $this->redis->expire($periodKey, $expireInSeconds);
                $this->redis->expire($periodKey . '_total', $expireInSeconds);
            }
        }
    }
protected function periodsSync()
    {
        foreach ($this->periods as $period) {
            $periodKey = $this->keys->period($period);

            if ($this->noExpiration($periodKey)) {
                $expireInSeconds = $this->newExpiration($period);
                $this->redis->incrby($periodKey . '_total', 0);
                $this->redis->zincrby($periodKey, 0, 0);
                $this->redis->expire($periodKey, $expireInSeconds);
                $this->redis->expire($periodKey . '_total', $expireInSeconds);
            }
        }
    }
protected function periodsSync ( ) { foreach ( $ this -> periods as $ period ) { $ periodKey = $ this -> keys -> period ( $ period ) ; if ( $ this -> noExpiration ( $ periodKey ) ) { $ expireInSeconds = $ this -> newExpiration ( $ period ) ; $ this -> redis -> incrby ( $ periodKey . '_total' , 0 ) ; $ this -> redis -> zincrby ( $ periodKey , 0 , 0 ) ; $ this -> redis -> expire ( $ periodKey , $ expireInSeconds ) ; $ this -> redis -> expire ( $ periodKey . '_total' , $ expireInSeconds ) ; } } }
Sync periods times
Sync periods times