persistent-cache-storage-api 0.1.2 → 0.1.3

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: f40d33e849b8fb7e905968d60db5361f786a46d2
4
- data.tar.gz: 895dfb343a13c47f52ed330fed3c33d08798c768
3
+ metadata.gz: da729c0628cfa92ce7f59e722869cd81073d25ee
4
+ data.tar.gz: a09a62b4de02bb002a310f9d70a405091f29beb1
5
5
  SHA512:
6
- metadata.gz: 5c157483ec36726f654a9ba920ecd3c28ea0499df01462321fb380fb171df926b8a5e12722fbb9658021661c4eff699a09c4c2b646be844590f63fbe01382bb0
7
- data.tar.gz: 02cc5f038d5b86459efee624c7787f9ee407d2d198e2a7be7dc15c1a086ce7bd2dcf108634154c6a1f81f169d01a731400a2240fcb098a45ee63d147be2e3bf0
6
+ metadata.gz: 99c86ef2430fd73cd3f380fb705c8e05a930df6c68222216526e5917843af4acdb51c839a28e9d96cf73a23f38e181268ae0cd714238d769b3978fef5b36b74b
7
+ data.tar.gz: 7b2413cf4386cb4499fda4560bf7fb5f477103d9a0ffd34cc2e28b29ce986a37f56a025e545882eb08e02af97bc26e720a1d577e5667f962b59688eb2e848a74
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Persistent::Cache::StorageAPI
1
+ # Persistent::Storage::StorageAPI
2
2
 
3
3
  This gem encodes the API that Persistent::Cache providers adhere to in order to plug in as a back-end to Persistent::Cache. Please see https://rubygems.org/gems/persistent-cache.
4
4
 
@@ -26,7 +26,7 @@ Create storage providers by extending this api:
26
26
  require 'persistent-cache/storage_api'
27
27
 
28
28
  module Persistent
29
- class StorageDirectory < Persistent::Cache::StorageApi::API
29
+ class StorageDirectory < Persistent::StorageApi::API
30
30
  def initialize(storage_details)
31
31
  # storage_details includes connection strings, etc.
32
32
  end
@@ -1,34 +1,32 @@
1
1
  require "persistent-cache/version"
2
2
 
3
3
  module Persistent
4
- module Cache
5
- module StorageApi
6
- class API
7
- public
4
+ module StorageApi
5
+ class API
6
+ public
8
7
 
9
- def initialize(storage_details)
10
- end
8
+ def initialize(storage_details)
9
+ end
11
10
 
12
- protected
11
+ protected
13
12
 
14
- def save_key_value_pair(key, value, timestamp = nil) abstract end
13
+ def save_key_value_pair(key, value, timestamp = nil) abstract end
15
14
 
16
- def lookup_key(key) abstract end
15
+ def lookup_key(key) abstract end
17
16
 
18
- def delete_entry(key) abstract end
17
+ def delete_entry(key) abstract end
19
18
 
20
- def size() abstract end
19
+ def size() abstract end
21
20
 
22
- def keys() abstract end
21
+ def keys() abstract end
23
22
 
24
- def clear() abstract end
23
+ def clear() abstract end
25
24
 
26
- private
25
+ private
27
26
 
28
- def abstract
29
- raise NotImplementedError.new("#{self.class.name} is an abstract class.")
30
- end
27
+ def abstract
28
+ raise NotImplementedError.new("#{self.class.name} is an abstract class.")
31
29
  end
32
- end
33
- end
30
+ end
31
+ end
34
32
  end
@@ -1,7 +1,5 @@
1
1
  module Persistent
2
- module Cache
3
- module StorageApi
4
- VERSION = "0.1.2"
5
- end
2
+ module StorageApi
3
+ VERSION = "0.1.3"
6
4
  end
7
5
  end
@@ -5,7 +5,7 @@ require 'persistent-cache/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "persistent-cache-storage-api"
8
- spec.version = Persistent::Cache::StorageApi::VERSION
8
+ spec.version = Persistent::StorageApi::VERSION
9
9
  spec.authors = ["Ernst Van Graan"]
10
10
  spec.email = ["ernst.van.graan@hetzner.co.za"]
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: persistent-cache-storage-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst Van Graan