Class: Scryer::CacheCallInfo
- Inherits:
-
Struct
- Object
- Struct
- Scryer::CacheCallInfo
- Defined in:
- lib/scryer/cache_extractor.rb
Overview
A Rails.cache.fetch(key) { value } or Rails.cache.write(key, value)
call site: what gets cached (token_stream, for comparing against other
call sites) and under what key (cache_key, kept as display text rather
than normalized — two sites caching the same value are only worth
flagging when their keys actually differ; see Scanner).
Instance Attribute Summary collapse
-
#cache_key ⇒ Object
Returns the value of attribute cache_key.
-
#end_line ⇒ Object
Returns the value of attribute end_line.
-
#file ⇒ Object
Returns the value of attribute file.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source_snippet ⇒ Object
Returns the value of attribute source_snippet.
-
#start_line ⇒ Object
Returns the value of attribute start_line.
-
#token_stream ⇒ Object
Returns the value of attribute token_stream.
Instance Attribute Details
#cache_key ⇒ Object
Returns the value of attribute cache_key
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def cache_key @cache_key end |
#end_line ⇒ Object
Returns the value of attribute end_line
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def end_line @end_line end |
#file ⇒ Object
Returns the value of attribute file
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def file @file end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def name @name end |
#source_snippet ⇒ Object
Returns the value of attribute source_snippet
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def source_snippet @source_snippet end |
#start_line ⇒ Object
Returns the value of attribute start_line
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def start_line @start_line end |
#token_stream ⇒ Object
Returns the value of attribute token_stream
9 10 11 |
# File 'lib/scryer/cache_extractor.rb', line 9 def token_stream @token_stream end |