Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct some docblocks #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions object-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function wp_cache_switch_to_blog( $blog_id ) {
/**
* Adds a group or set of groups to the list of global groups.
*
* @param string|array $groups A group or an array of groups to add
* @param string|string[] $groups A group or an array of groups to add
*/
function wp_cache_add_global_groups( $groups ) {
global $wp_object_cache;
Expand All @@ -244,7 +244,7 @@ function wp_cache_add_global_groups( $groups ) {
/**
* Adds a group or set of groups to the list of non-persistent groups.
*
* @param string|array $groups A group or an array of groups to add
* @param string|string[] $groups A group or an array of groups to add
*/
function wp_cache_add_non_persistent_groups( $groups ) {
global $wp_object_cache;
Expand All @@ -255,7 +255,7 @@ function wp_cache_add_non_persistent_groups( $groups ) {
/**
* Adds a group or set of groups to the list of groups that use Redis hashes.
*
* @param string|array $groups A group or an array of groups to add.
* @param string|string[] $groups A group or an array of groups to add.
*/
function wp_cache_add_redis_hash_groups( $groups ) {
global $wp_object_cache;
Expand Down Expand Up @@ -327,30 +327,30 @@ class WP_Object_Cache {
* The amount of times a request was made to Redis
*
* @access private
* @var int
* @var int[]
*/
var $redis_calls = array();

/**
* List of global groups
*
* @var array
* @var string[]
* @access protected
*/
var $global_groups = array();

/**
* List of non-persistent groups
*
* @var array
* @var string[]
* @access protected
*/
var $non_persistent_groups = array();

/**
* List of groups which use Redis hashes.
*
* @var array
* @var string[]
* @access protected
*/
var $redis_hash_groups = array();
Expand Down Expand Up @@ -425,7 +425,7 @@ public function add( $key, $data, $group = 'default', $expire = WP_REDIS_DEFAULT
/**
* Sets the list of global groups.
*
* @param array $groups List of groups that are global.
* @param string[] $groups List of groups that are global.
*/
public function add_global_groups( $groups ) {
$groups = (array) $groups;
Expand All @@ -437,7 +437,7 @@ public function add_global_groups( $groups ) {
/**
* Sets the list of non-persistent groups.
*
* @param array $groups List of groups that are non-persistent.
* @param string[] $groups List of groups that are non-persistent.
*/
public function add_non_persistent_groups( $groups ) {
$groups = (array) $groups;
Expand All @@ -449,7 +449,7 @@ public function add_non_persistent_groups( $groups ) {
/**
* Sets the list of groups that use Redis hashes.
*
* @param array $groups List of groups that use Redis hashes.
* @param string[] $groups List of groups that use Redis hashes.
*/
public function add_redis_hash_groups( $groups ) {
$groups = (array) $groups;
Expand Down