Mongolid\Cursor\CacheableCursor::generateCacheKey PHP Method

generateCacheKey() protected method

Generates an unique cache key for the cursor in it's current state.
protected generateCacheKey ( ) : string
return string Cache key to identify the query of the current cursor.
    protected function generateCacheKey() : string
    {
        $serializer = Ioc::make(Serializer::class);
        return sprintf('%s:%s:%s', $this->command, $this->collection->getNamespace(), md5($serializer->serialize($this->params)));
    }