Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SMW\SQLStore\EntityStore\PrefetchCache Class Reference

Public Member Functions

 __construct (SQLStore $store, PrefetchItemLookup $prefetchItemLookup)
 
 isCached (DIProperty $property)
 
 clear ()
 
 prefetch (array $subjects, DIProperty $property, RequestOptions $requestOptions)
 
 getPropertyValues (DIWikiPage $subject, DIProperty $property, RequestOptions $requestOptions)
 

Static Public Member Functions

static makeCacheKey (DIProperty $property, RequestOptions $requestOptions)
 

Detailed Description

GNU GPL v2

Since
3.1
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\SQLStore\EntityStore\PrefetchCache::__construct ( SQLStore  $store,
PrefetchItemLookup  $prefetchItemLookup 
)
Since
3.1
Parameters
SQLStore$store
PrefetchItemLookup$prefetchItemLookup

Member Function Documentation

◆ clear()

SMW\SQLStore\EntityStore\PrefetchCache::clear ( )
Since
3.1

◆ getPropertyValues()

SMW\SQLStore\EntityStore\PrefetchCache::getPropertyValues ( DIWikiPage  $subject,
DIProperty  $property,
RequestOptions  $requestOptions 
)
Since
3.1
Parameters
DIWikiPage$subject
DIProperty$property
RequestOptions$requestOptions
Returns
[]

◆ isCached()

SMW\SQLStore\EntityStore\PrefetchCache::isCached ( DIProperty  $property)
Since
3.1
Parameters
DIProperty$property
Returns
boolean

◆ makeCacheKey()

static SMW\SQLStore\EntityStore\PrefetchCache::makeCacheKey ( DIProperty  $property,
RequestOptions  $requestOptions 
)
static
Since
3.1
Parameters
DIProperty$property
RequestOptions$requestOptions

◆ prefetch()

SMW\SQLStore\EntityStore\PrefetchCache::prefetch ( array  $subjects,
DIProperty  $property,
RequestOptions  $requestOptions 
)

Prefetch related data into the cache in order for the LookupCache::get to return the individual data.

Since
3.1
Parameters
DIWikiPage[]$subjects
DIProperty$property
RequestOptions$requestOptions

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy