src/Security/InheritedPermissions.php
protected function getCachePermissions($cacheKey)
    {
        // Check local cache
        if (isset($this->cachePermissions[$cacheKey])) {
            return $this->cachePermissions[$cacheKey];
        }

        // Check persistent cache
        if ($this->cacheService) {
            $result = $this->cacheService->get($cacheKey);

            // Warm local cache
            if ($result) {
                $this->cachePermissions[$cacheKey] = $result;
                return $result;
            }
        }

        return null;
    }
protected function getCachePermissions($cacheKey)
    {
        // Check local cache
        if (isset($this->cachePermissions[$cacheKey])) {
            return $this->cachePermissions[$cacheKey];
        }

        // Check persistent cache
        if ($this->cacheService) {
            $result = $this->cacheService->get($cacheKey);

            // Warm local cache
            if ($result) {
                $this->cachePermissions[$cacheKey] = $result;
                return $result;
            }
        }

        return null;
    }
protected function getCachePermissions ( $ cacheKey ) { // Check local cache if ( isset ( $ this -> cachePermissions [ $ cacheKey ] ) ) { return $ this -> cachePermissions [ $ cacheKey ] ; } // Check persistent cache if ( $ this -> cacheService ) { $ result = $ this -> cacheService -> get ( $ cacheKey ) ; // Warm local cache if ( $ result ) { $ this -> cachePermissions [ $ cacheKey ] = $ result ; return $ result ; } } return null ; }
Gets the permission from cache

@param string $cacheKey
@return mixed
Gets the permission from cache