Module: LogStash::StringInterpolation

Extended by:
StringInterpolation
Included in:
StringInterpolation
Defined in:
lib/logstash/string_interpolation.rb

Instance Method Summary collapse

Instance Method Details

#cache_sizeFixnum

Returns the compiled templates cache size.

Returns:

  • (Fixnum)

    the compiled templates cache size



13
14
15
# File 'lib/logstash/string_interpolation.rb', line 13

def cache_size
  Java::OrgLogstash::StringInterpolation.get_instance.cache_size;
end

#clear_cacheObject

clear the global compiled templates cache



8
9
10
# File 'lib/logstash/string_interpolation.rb', line 8

def clear_cache
  Java::OrgLogstash::StringInterpolation.get_instance.clear_cache;
end