padrino-cache 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b7050f5d6d2ab9a219ac49f53070953c9b36fce
4
- data.tar.gz: 1d9a1dd4afb6129cc79d587cdcff69a08492a062
3
+ metadata.gz: 90a12b145c168c1bf06eed80003c8a2192ea4da8
4
+ data.tar.gz: d7037b8f473894021d164bf29a78b477b38f915d
5
5
  SHA512:
6
- metadata.gz: 83da0914d495a370167a331d774818e0bee19f705cc6bf20dae375d50c8e04693dccedff3e85dfba18384a2b837f09597ac7746d1723b5bee156fcba784ead30
7
- data.tar.gz: e8e1f995cd4256f0c29e319f77f3497b367fbbcc74fd2652be35544f9d566171719d68e40820bea5089d3f8b9db65dfd8d5168ce21ab91a10958938d192edce2
6
+ metadata.gz: 465103c327fef8882fbbf3365976eb4ca2c4da7522cef9106d187a255df2bf0baea14ef9d656eb24245370c5c1644aaac27834fe6fb86b0d14426183a490d75e
7
+ data.tar.gz: 5dac09e66c5faa7732d3b77f695508be00a0aa5a761d74de881e3c9f7f3a002db765bb90d7c5e32285ae95980ee05488f2a329c36a1a3e6ef955dddb254b7881
data/README.rdoc CHANGED
@@ -255,7 +255,8 @@ You can set a global caching option or a per app caching options.
255
255
 
256
256
  === Global Caching Options
257
257
 
258
- Padrino.cache = Padrino::Cache.new(:LRUHash) # Keeps cached values in memory
258
+ Padrino.cache = Padrino::Cache.new(:LRUHash) # default choice
259
+ Padrino.cache = Padrino::Cache.new(:File, :dir => Padrino.root('tmp', app_name.to_s, 'cache')) # Keeps cached values in file
259
260
  Padrino.cache = Padrino::Cache.new(:Memcached) # Uses default server at localhost
260
261
  Padrino.cache = Padrino::Cache.new(:Memcached, :server => '127.0.0.1:11211', :exception_retry_limit => 1)
261
262
  Padrino.cache = Padrino::Cache.new(:Memcached, :backend => memcached_or_dalli_instance)
@@ -264,7 +265,6 @@ You can set a global caching option or a per app caching options.
264
265
  Padrino.cache = Padrino::Cache.new(:Redis, :backend => redis_instance)
265
266
  Padrino.cache = Padrino::Cache.new(:Mongo) # Uses default server at localhost
266
267
  Padrino.cache = Padrino::Cache.new(:Mongo, :backend => mongo_client_instance)
267
- Padrino.cache = Padrino::Cache.new(:File, :dir => Padrino.root('tmp', app_name.to_s, 'cache')) # default choice
268
268
 
269
269
  You can manage your cache from anywhere in your app:
270
270
 
@@ -28,7 +28,7 @@ module Padrino
28
28
  #
29
29
  # @example
30
30
  # MyApp.cache.set('records', records)
31
- # MyApp.cache.set('records', records, :expires_in => 30) # => 30 seconds
31
+ # MyApp.cache.set('records', records, :expires => 30) # => 30 seconds
32
32
  #
33
33
  # @api public
34
34
  def set(key, value, opts = nil)
data/lib/padrino-cache.rb CHANGED
@@ -28,8 +28,8 @@ module Padrino
28
28
  # Instance of Moneta store
29
29
  #
30
30
  # @example
31
- # Padrino.cache = Padrino::Cache.new(:File, :dir => Padrino.root('tmp', app_name.to_s, 'cache')) # default choice
32
- # Padrino.cache = Padrino::Cache.new(:LRUHash) # Keeps cached values in memory
31
+ # Padrino.cache = Padrino::Cache.new(:LRUHash) # default choice
32
+ # Padrino.cache = Padrino::Cache.new(:File, :dir => Padrino.root('tmp', app_name.to_s, 'cache')) # Keeps cached values in file
33
33
  # Padrino.cache = Padrino::Cache.new(:Memcached) # Uses default server at localhost
34
34
  # Padrino.cache = Padrino::Cache.new(:Memcached, :server => '127.0.0.1:11211', :exception_retry_limit => 1)
35
35
  # Padrino.cache = Padrino::Cache.new(:Memcached, :backend => memcached_or_dalli_instance)
@@ -62,6 +62,7 @@ module Padrino
62
62
  ##
63
63
  # Register these helpers:
64
64
  #
65
+ # Padrino::Cache::Helpers::ObjectCache
65
66
  # Padrino::Cache::Helpers::CacheStore
66
67
  # Padrino::Cache::Helpers::Fragment
67
68
  # Padrino::Cache::Helpers::Page
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-04-04 00:00:00.000000000 Z
14
+ date: 2014-05-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,28 +19,28 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.12.1
22
+ version: 0.12.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.12.1
29
+ version: 0.12.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: padrino-helpers
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
34
  - - '='
35
35
  - !ruby/object:Gem::Version
36
- version: 0.12.1
36
+ version: 0.12.2
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - '='
42
42
  - !ruby/object:Gem::Version
43
- version: 0.12.1
43
+ version: 0.12.2
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: moneta
46
46
  requirement: !ruby/object:Gem::Requirement