uber_cache 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/uber_cache.rb +3 -2
  3. metadata +11 -16
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 57719f784ae7db8c8f9af925b7129eff7b1b4bc9
4
+ data.tar.gz: e05aafa973ddd076073d6126e15f665be57bfe22
5
+ SHA512:
6
+ metadata.gz: 68f3b6610b43dd8aad2ef5d616c6e34c2e1fca4e2a21e236f47ce52d7788fe0f40fbe05aafdf82d1ac7b92aa71e23565410f1714c6eb83554c47491b0417da68
7
+ data.tar.gz: cea7fb17dc1e95dd495c7ee1de8e7d554890668edf41984af91f0d664e81621659759f47555aa0fae8e3cc9ce0ef73ea9c30758704b46b3e6be799d3e520bf1f
data/lib/uber_cache.rb CHANGED
@@ -7,8 +7,9 @@ class UberCache
7
7
  @cache_prefix
8
8
  @hosts
9
9
 
10
- def initialize(cache_prefix, hosts)
10
+ def initialize(cache_prefix, hosts, opts = {})
11
11
  @cache_prefix = cache_prefix
12
+ @dalli_opts = opts
12
13
  @hosts = hosts
13
14
  end
14
15
 
@@ -83,7 +84,7 @@ class UberCache
83
84
 
84
85
  private
85
86
  def client
86
- @client ||= Dalli::Client.new(@hosts)
87
+ @client ||= Dalli::Client.new(@hosts, @dalli_opts)
87
88
  end
88
89
 
89
90
  #namespace the keys - to not kill other stuff.
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uber_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Reister
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-05-29 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: dalli
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,20 +27,19 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ~>
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ~>
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
- description: Simple Caching Wrapper for Dalli/Memcache
41
+ description: Simple Caching Wrapper for Dalli/Memcache - Built to make caching a little
42
+ easier.
47
43
  email: chris@chrisreister.com
48
44
  executables: []
49
45
  extensions: []
@@ -53,26 +49,25 @@ files:
53
49
  homepage: https://github.com/chrisftw/uber_cache
54
50
  licenses:
55
51
  - MIT
52
+ metadata: {}
56
53
  post_install_message:
57
54
  rdoc_options: []
58
55
  require_paths:
59
56
  - lib
60
57
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
58
  requirements:
63
- - - ! '>='
59
+ - - '>='
64
60
  - !ruby/object:Gem::Version
65
61
  version: '0'
66
62
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
63
  requirements:
69
- - - ! '>='
64
+ - - '>='
70
65
  - !ruby/object:Gem::Version
71
66
  version: '0'
72
67
  requirements: []
73
68
  rubyforge_project:
74
- rubygems_version: 1.8.23
69
+ rubygems_version: 2.4.2
75
70
  signing_key:
76
- specification_version: 3
71
+ specification_version: 4
77
72
  summary: Simple Caching Wrapper for Dalli/Memcache
78
73
  test_files: []