Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 310]

Redis cache test. If you wish to use these unit tests all you need to do is add the following definition to your config.php file.

Copyright: Copyright (c) 2015 Moodlerooms Inc. (http://www.moodlerooms.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 126 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 2 files
 cache/stores/redis/lib.php
 cache/tests/fixtures/stores.php

Defines 1 class

cachestore_redis_test:: (8 methods):
  get_class_name()
  setUp()
  tearDown()
  create_cachestore_redis()
  test_has()
  test_has_any()
  test_has_all()
  test_lock()


Class: cachestore_redis_test  - X-Ref

Redis cache test.

get_class_name()   X-Ref
Returns the MongoDB class name

return: string

setUp()   X-Ref
No description

tearDown()   X-Ref
No description

create_cachestore_redis()   X-Ref
Creates the required cachestore for the tests to run against Redis.

return: cachestore_redis

test_has()   X-Ref
No description

test_has_any()   X-Ref
No description

test_has_all()   X-Ref
No description

test_lock()   X-Ref
No description