Go to the documentation of this file.
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 ) {
cookiesNeeded()
Whether this type of CaptchaStore needs cookies.
Class representing a cache/ephemeral data store.
retrieve( $index)
Retrieve the answer for a given captcha.
get( $key, $flags=0)
Get an item with the given key.
clear( $index)
Delete a result once the captcha has been used, so it cannot be reused.
store( $index, $info)
Store the correct answer for a given captcha.
makeKey( $class,... $components)
Make a cache key, scoped to this instance's keyspace.
__construct()
Protected constructor: no creating instances except through the factory method above.
set( $key, $value, $exptime=0, $flags=0)
Set an item.
delete( $key, $flags=0)
Delete an item.