Class: RedisCounters::UniqueHashCounter

Inherits:
HashCounter show all
Defined in:
lib/redis_counters/unique_hash_counter.rb

Overview

HashCounter, с возможностью подсчета только уникальных значений.

Constant Summary collapse

UNIQUE_LIST_POSTFIX =
'uq'.freeze
UNIQUE_LIST_POSTFIX_DELIMITER =
'_'.freeze

Constants inherited from BaseCounter

BaseCounter::KEY_DELIMITER, BaseCounter::VALUE_DELIMITER

Instance Attribute Summary collapse

Attributes inherited from BaseCounter

#options, #params, #redis

Method Summary

Methods included from ClusterizeAndPartitionize

#data, #delete_all!, #delete_all_direct!, #delete_partition_direct!, #delete_partitions!, #partitions

Methods inherited from BaseCounter

create, #initialize, #name, #process

Constructor Details

This class inherits a constructor from RedisCounters::BaseCounter

Instance Attribute Details

#unique_values_listObject (readonly)

Returns the value of attribute unique_values_list.



13
14
15
# File 'lib/redis_counters/unique_hash_counter.rb', line 13

def unique_values_list
  @unique_values_list
end