Auth_OpenID_PredisStore::removeAssociation PHP Method

removeAssociation() public method

Immediately delete association from Redis.
public removeAssociation ( $server_url, $handle )
    function removeAssociation($server_url, $handle)
    {
        // create Redis keys
        $serverKey = $this->associationServerKey($server_url);
        $associationKey = $this->associationKey($server_url, $handle);
        // Removing the association from the server's association list
        $removed = $this->redis->lrem($serverKey, 0, $associationKey);
        if ($removed < 1) {
            return false;
        }
        // Delete the association itself
        return $this->redis->del($associationKey);
    }