4 function store( $index, $info ) {
5 global $wgCaptchaSessionExpiration;
7 ObjectCache::getMainStashInstance()->set(
10 $wgCaptchaSessionExpiration
15 $info = ObjectCache::getMainStashInstance()->get(
wfMemcKey(
'captcha', $index ) );
24 ObjectCache::getMainStashInstance()->delete(
wfMemcKey(
'captcha', $index ) );
wfMemcKey()
Make a cache key for the local wiki.
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.