Свойство | Type | Description | |
---|---|---|---|
$documents | array | The documents that were retrieved from the database in a serializable way. | |
$ignoreCache | boolean | Means that the CacheableCursor is wapping the original cursor and not reading from Cache anymore. | |
$originalLimit | ìnteger | Limit of the query. It is stored because when caching the documents the DOCUMENT_LIMIT const will be used. |
Méthode | Description | |
---|---|---|
serialize ( ) : string | Serializes this object. Drops the unserializable DriverCursor. In order to make the CacheableCursor object serializable. |
Méthode | Description | |
---|---|---|
generateCacheKey ( ) : string | Generates an unique cache key for the cursor in it's current state. | |
getCursor ( ) : Traversable | Actually returns a Traversable object with the DriverCursor within. | |
getLimit ( ) : mixed | Gets the limit clause of the query if any. | |
getOriginalCursor ( ) : Traversable | Returns the DriverCursor considering the documents that have already been retrieved from cache. | |
storeOriginalLimit ( ) : void | Stores the original "limit" clause of the query. |
protected generateCacheKey ( ) : string | ||
Résultat | string | Cache key to identify the query of the current cursor. |
protected getCursor ( ) : Traversable | ||
Résultat | Traversable |
protected getOriginalCursor ( ) : Traversable | ||
Résultat | Traversable |
protected storeOriginalLimit ( ) : void | ||
Résultat | void |
protected array $documents | ||
Résultat | array |
protected bool $ignoreCache | ||
Résultat | boolean |