public static function record_cache_set($store, $definition, $sets = 1) {
        list($definitionstr, $mode) = self::get_definition_stat_id_and_mode($definition);
        self::ensure_ready_for_stats($store, $definitionstr, $mode);
        self::$stats[$definitionstr]['stores'][$store]['sets'] += $sets;
    }
public static function record_cache_set($store, $definition, $sets = 1) {
        list($definitionstr, $mode) = self::get_definition_stat_id_and_mode($definition);
        self::ensure_ready_for_stats($store, $definitionstr, $mode);
        self::$stats[$definitionstr]['stores'][$store]['sets'] += $sets;
    }
public static function record_cache_set ( $ store , $ definition , $ sets = 1 ) { list ( $ definitionstr , $ mode ) = self :: get_definition_stat_id_and_mode ( $ definition ) ; self :: ensure_ready_for_stats ( $ store , $ definitionstr , $ mode ) ; self :: $ stats [ $ definitionstr ] [ 'stores' ] [ $ store ] [ 'sets' ] += $ sets ; }
Record a cache set in the stats for the given store and definition.

In Moodle 2.9 the $definition argument changed from accepting only a string to accepting a string or a
cache_definition instance. It is preferable to pass a cache definition instance.

@internal
@param string $store
@param cache_definition $definition You used to be able to pass a string here, however that is deprecated please pass the
actual cache_definition object now.
@param int $sets The number of sets to record (by default 1)
Record a cache set in the stats for the given store and definition .