Sha256: d537dcd67955f736f281d15db7673cc2607d839438496a0acffaf89fcea7a84b

Contents?: true

Size: 282 Bytes

Versions: 155

Compression:

Stored size: 282 Bytes

Contents


class Ish::CacheKey
  include ::Mongoid::Document
  include ::Mongoid::Timestamps

  field :cities,         :type => Time # /api/cities.json
  field :feature_cities, :type => Time # /api/cities/features.json

  def self.one
    Ish::CacheKey.first || Ish::CacheKey.new
  end
end

Version data entries

155 entries across 155 versions & 1 rubygems

Version Path
ish_models-3.0.0.1 lib/ish/cache_key.rb
ish_models-0.0.33.304 lib/ish/cache_key.rb
ish_models-0.0.33.303 lib/ish/cache_key.rb
ish_models-0.0.33.302 lib/ish/cache_key.rb
ish_models-0.0.33.301 lib/ish/cache_key.rb
ish_models-0.0.33.300 lib/ish/cache_key.rb
ish_models-0.0.33.299 lib/ish/cache_key.rb
ish_models-0.0.33.298 lib/ish/cache_key.rb
ish_models-0.0.33.297 lib/ish/cache_key.rb
ish_models-0.0.33.296 lib/ish/cache_key.rb
ish_models-0.0.33.295 lib/ish/cache_key.rb
ish_models-0.0.33.294 lib/ish/cache_key.rb
ish_models-0.0.33.293 lib/ish/cache_key.rb
ish_models-0.0.33.292 lib/ish/cache_key.rb
ish_models-0.0.33.291 lib/ish/cache_key.rb
ish_models-0.0.33.287 lib/ish/cache_key.rb
ish_models-0.0.33.286 lib/ish/cache_key.rb
ish_models-0.0.33.285 lib/ish/cache_key.rb
ish_models-0.0.33.284 lib/ish/cache_key.rb
ish_models-0.0.33.283 lib/ish/cache_key.rb