Class: Mondrian::OLAP::CacheControl
- Inherits:
-
Object
- Object
- Mondrian::OLAP::CacheControl
- Defined in:
- lib/mondrian/olap/cube.rb
Instance Method Summary collapse
- #flush_region_cache_with_full_names(*full_names) ⇒ Object
- #flush_region_cache_with_segments(*segment_names) ⇒ Object
-
#initialize(connection, cube) ⇒ CacheControl
constructor
A new instance of CacheControl.
Constructor Details
#initialize(connection, cube) ⇒ CacheControl
Returns a new instance of CacheControl.
416 417 418 419 420 421 |
# File 'lib/mondrian/olap/cube.rb', line 416 def initialize(connection, cube) @connection = connection @cube = cube @mondrian_cube = @cube.raw_cube.unwrap(Java::MondrianOlap::Cube.java_class) @cache_control = @connection.raw_cache_control end |
Instance Method Details
#flush_region_cache_with_full_names(*full_names) ⇒ Object
428 429 430 431 |
# File 'lib/mondrian/olap/cube.rb', line 428 def flush_region_cache_with_full_names(*full_names) members = full_names.map { |name| @cube.member(*name).mondrian_member } flush(members) end |
#flush_region_cache_with_segments(*segment_names) ⇒ Object
423 424 425 426 |
# File 'lib/mondrian/olap/cube.rb', line 423 def flush_region_cache_with_segments(*segment_names) members = segment_names.map { |name| @cube.member_by_segments(*name).mondrian_member } flush(members) end |