Get the cache key for save the token

@param   void
@return  string
502183
protected function getCacheKey()
    {
        $model      = new \ReflectionClass($this->model);

        $namespace  = Str::slug($model->getNamespaceName());
        $class      = Str::slug($model->getShortName());
        $type       = Str::slug($this->type);
        $key        = $this->model->getKey();

        if (empty($key))
            throw new Exception("[Token] Error: Empty value for " . $model->getShortName() . "'s attribute '" . $this->model->getKeyName() . "'.", 1);

        return 'malahierba-token' . '---' . $namespace . '---' . $class . '---' . $type . '---' . $key;
    }
1124637
public function getCacheKey()
    {
        if (is_null($this->cacheKey)) {
            return $this->cachePrefix . $this->getUserName();
        }

        return $this->cacheKey;
    }
1194227
public function get_css_cache_key() {
        $nosvg = (!$this->use_svg_icons()) ? 'nosvg_' : '';
        $rtlmode = ($this->rtlmode == true) ? 'rtl' : 'ltr';

        return $nosvg . $this->name . '_' . $rtlmode;
    }
78505
public function getToken(): string
    {
        if (!empty($this->token)) {
            return $this->token;
        }

        return hash('sha256', $this->sessionId . $this->salt);
    }
321505
public function store_key() {

		if ( ! empty( $this->struct['store_key'] ) ) {
			$store_key = $this->struct['store_key'];
		} else {
			$store_key = 'uix-' . $this->type . '-' . sanitize_text_field( $this->slug );
		}

		return $store_key;
	}
250235
public function key(): string
    {
        if ($this->cacheEntriesIterator === null) {
            $this->rewind();
        }
        return substr($this->cacheEntriesIterator->key(), strlen($this->identifierPrefix . 'entry_'));
    }
893100
public function getStorageKey(): string
    {
        return $this->_storage['storage_key'] ?? $this->getTypePrefix() . $this->getFlexType() . '@@' . spl_object_hash($this);
    }
1276132
public function getKey()
    {
        if (!isset($this->key)) {
            $this->key = md5(microtime().rand());
        }
        return $this->key;
    }
81022
protected function generateKey()
    {
        $split = '.';
        $prefix = config('laravel-sms.storage.prefix', 'laravel_sms');
        $args = func_get_args();
        array_unshift($args, $this->token);
        $args = array_filter($args, function ($value) {
            return $value && is_string($value);
        });
        if (!(empty($args))) {
            $prefix .= $split . implode($split, $args);
        }

        return $prefix;
    }
547053
public function getCacheKey()
    {
        if (is_null($this->cacheKey)) {
            return $this->prefix.$this->suiteId;
        }

        return $this->cacheKey;
    }
516465
public function getTicketCacheKey()
    {
        if (is_null($this->ticketCacheKey)) {
            return $this->ticketCachePrefix.$this->getAccessToken()->getFingerprint();
        }

        return $this->ticketCacheKey;
    }
686284
public function cacheKey()
    {
        $this->cacheKey = $this->cacheKey ??
            $this->generateCacheKey(
                auth()->guest() ? 'guest' : auth()->user()->role
            );

        return $this->cacheKey;
    }
230350
final static public function get_secret_key() {
        global $CFG;

        if (!isset($CFG->reposecretkey)) {
            set_config('reposecretkey', time() . random_string(32));
        }
        return $CFG->reposecretkey;
    }
934321
def get_action_cache_key(name, argument):
    """"""
    tokens = [str(name)]
    if argument:
        tokens.append(str(argument))
    return '::'.join(tokens)
592851
public function getTokenString()
    {
        $cacheId = $this->getCacheId();

        if ($this->cache && $data = $this->cache->fetch($cacheId)) {
            return $data['access_token'];
        }

        $response = $this->getTokenResponse();

        if ($this->cache) {
            $this->cache->save($cacheId, $response, $response['expires_in']);
        }

        return $response['access_token'];
    }
544530
public function cacheKeys()
    {
        $keys = [];
        $roles = array_merge(cache('roles'), ['guest']);

        foreach ($roles as $role) {
            $keys[] = $this->generateCacheKey($role);
        }

        return implode('|', $keys);
    }
1180164
public function get($key, &$token = null)
    {
        $value = $this->transaction->get($key, $token);

        // only store if we managed to retrieve a value (valid token) and it's
        // not already in cache (or we may mess up tokens)
        if ($value !== false && $this->local->get($key, $localToken) === false && $localToken === null) {
            $this->local->set($key, $value);
        }

        return $value;
    }