Sha256: 46678269fa0ccb38bdf0bd93680f8eb68e91c752ad66c0ca28243904f7afc51c

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

# Aqila::Cache

Invalidate the cache when the model data changes.

## Publish

`make release`

# Guide

Initializer:
```
Aqila::Cache.configure do |config|
    config.configure_model do |model|
        model.table_name = :ino_log_table
        model.sequence_name = :gen_ino_log_table
    end
    config.default_ttl = 1.day
end
```

Example Model:

```
class Estadio < ActiveRecord::Base
  include Aqila::Cache::Callbacks

  self.cache_ttl = 1.day
  ...
end
```

Example Controller:
```
class V1::EstadiosController < ApplicationController
  def index
    return unless Estadio.stale?(controller: self)
    ...
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aqila-cache-0.3.0 README.md
aqila-cache-0.2.0 README.md