Changeset 55581 for trunk/tests/phpunit/includes/object-cache.php
- Timestamp:
- 03/22/2023 09:25:32 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/object-cache.php
r55577 r55581 1182 1182 public function cas( $cas_token, $key, $value, $group = 'default', $expiration = 0, $server_key = '', $by_key = false ) { 1183 1183 $derived_key = $this->buildKey( $key, $group ); 1184 $expiration = $this->sanitize_expiration( $expiration );1185 1184 1186 1185 /** … … 1193 1192 return true; 1194 1193 } 1194 1195 $expiration = $this->sanitize_expiration( $expiration ); 1195 1196 1196 1197 // Save to Memcached. … … 1907 1908 public function replace( $key, $value, $group = 'default', $expiration = 0, $server_key = '', $by_key = false ) { 1908 1909 $derived_key = $this->buildKey( $key, $group ); 1909 $expiration = $this->sanitize_expiration( $expiration );1910 1910 1911 1911 // If group is a non-Memcached group, save to runtime cache, not Memcached. … … 1920 1920 return true; 1921 1921 } 1922 1923 $expiration = $this->sanitize_expiration( $expiration ); 1922 1924 1923 1925 // Save to Memcached. … … 1972 1974 public function set( $key, $value, $group = 'default', $expiration = 0, $server_key = '', $by_key = false ) { 1973 1975 $derived_key = $this->buildKey( $key, $group ); 1974 $expiration = $this->sanitize_expiration( $expiration );1975 1976 1976 1977 // If group is a non-Memcached group, save to runtime cache, not Memcached. … … 1979 1980 return true; 1980 1981 } 1982 1983 $expiration = $this->sanitize_expiration( $expiration ); 1981 1984 1982 1985 // Save to Memcached. … … 2034 2037 // Build final keys and replace $items keys with the new keys. 2035 2038 $derived_keys = $this->buildKeys( array_keys( $items ), $groups ); 2036 $expiration = $this->sanitize_expiration( $expiration );2037 2039 $derived_items = array_combine( $derived_keys, $items ); 2038 2040 … … 2049 2051 } 2050 2052 } 2053 2054 $expiration = $this->sanitize_expiration( $expiration ); 2051 2055 2052 2056 // Save to memcached.
Note: See TracChangeset
for help on using the changeset viewer.