scache_rnshift

Description

bool scache_rnshift(resource session, string path)
bool $SCacheConnection->rnshift(string path)

scache_rnshift retrieves first (ie. current) element from begin of a ring in given path. Last element can be retrieved with scache_rnpop.

Both scache_rnshift and scache_rnpop remove element from ring after retrieving while scache_rnget doesn't remove element it touches.

Parameters

session
Session resource returned from scache_open, scache_reset or scache_connect
path
Slash (/) separated null-terminated path on backend's session tree

Return values

Stored content on success or FALSE if given path does not exist or error occurred.

In case of failure, error codes resolvable by scache_lasterr is one of below :

Notes

Example

<?php

?>