10 parent::__construct();
12 $this->cache = MediaWikiServices::getInstance()->getMainObjectStash();
15 public function store( $index, $info ) {
16 global $wgCaptchaSessionExpiration;
22 $wgCaptchaSessionExpiration
36 public function clear( $index ) {
Class representing a cache/ephemeral data store.
get( $key, $flags=0)
Get an item with the given key.
makeKey( $class,... $components)
Make a cache key, scoped to this instance's keyspace.
delete( $key, $flags=0)
Delete an item.
set( $key, $value, $exptime=0, $flags=0)
Set an item.
retrieve( $index)
Retrieve the answer for a given captcha.
clear( $index)
Delete a result once the captcha has been used, so it cannot be reused.
cookiesNeeded()
Whether this type of CaptchaStore needs cookies.
store( $index, $info)
Store the correct answer for a given captcha.
__construct()
Protected constructor: no creating instances except through the factory method above.