Sha256: bff2ea65a6d32f08fb5691d1bdc5af566f7ccc54173df50b0f7bbaa571a12fe6
Contents?: true
Size: 777 Bytes
Versions: 72
Compression:
Stored size: 777 Bytes
Contents
# frozen_string_literal: true module SplitIoClient module Cache module Filter class FilterAdapter def initialize(config, filter) @config = config @filter = filter end def add(feature_name, key) @filter.add("#{feature_name}#{key}") rescue StandardError => e @config.log_found_exception(__method__.to_s, e) end def contains?(feature_name, key) @filter.contains?("#{feature_name}#{key}") rescue StandardError => e @config.log_found_exception(__method__.to_s, e) end def clear @filter.clear rescue StandardError => e @config.log_found_exception(__method__.to_s, e) end end end end end
Version data entries
72 entries across 72 versions & 1 rubygems