4 public function store( $index, $info ) {
7 ObjectCache::getMainStashInstance()->set(
10 $wgCaptchaSessionExpiration
15 $info = ObjectCache::getMainStashInstance()->get(
wfMemcKey(
'captcha', $index ) );
23 public function clear( $index ) {
24 ObjectCache::getMainStashInstance()->delete(
wfMemcKey(
'captcha', $index ) );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
wfMemcKey(... $args)
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.