aws-dev-utils 1.4.3 → 1.4.4

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
  SHA256:
3
- metadata.gz: cf214f05f27ab000665e7f919c6ccafdb696f190980f5c93569d4d6483c08e60
4
- data.tar.gz: e2f1ecbf89b6313f9292c32ca2863c9b31c20b6d6964ba89e6d91a2298a60ec8
3
+ metadata.gz: 34a8659230582635341c256080cf9799b0a61a1e0b310234f8d86a695460cbba
4
+ data.tar.gz: 540c636ebcb5c10668575ed17ce64832e9e88932582a89250f85f87db6965900
5
5
  SHA512:
6
- metadata.gz: ba20b7e991d5db14ee9120d3527600f665e6445c88743ba6fec50c08c1d1b89fa82e57c00ea9c2319a67373f0122ab3fb0555d7bc9aa2c6eb1be5d1b0024c9c4
7
- data.tar.gz: 1a9399a35a96b17b8df01a24f03f42e169e44bbd948f082989903f0895a9b4ae1e30088beb741fc95f8eb57aca98bcb664a8380b8168faec59176757003b78de
6
+ metadata.gz: 8dcd8e2f81e666beed0e3e96cdaea536024f2acd9f6b839bf9086e42b175af4d9e4d2c997484eb4c2c20d5f763d43bac871159fd046c0b071836924b767e7ad1
7
+ data.tar.gz: 9ec27b077aa93bba943e5d188fb8fab8ecf80dc2b9e7ff8bff226da57496c379d20b8ee4c6961f869b0f690a6017ca6327d8bbc35aca27a83f8ad41f392b1224
@@ -5,20 +5,20 @@ module AwsDevUtils
5
5
  class Redis
6
6
  # :nocov:
7
7
  # Initialize a new redis client
8
- # @params [String] url - specify redis url connection
8
+ # @param [String] url - specify redis url connection
9
9
  def initialize url='redis://localhost:6379'
10
10
  @redis = ::Redis.new(url: url)
11
11
  end
12
12
 
13
- # Get the value of key. If not found, returns nil
13
+ # Get the value of key. If not found returns nil
14
14
  def get key
15
15
  @redis.get key
16
16
  end
17
17
 
18
18
  # Set key to hold the value and set key to timeout after the a given expiration time(in seconds).
19
- # @param [Object] key
20
- # @param [Object] value
21
- # @param [Integer] exp - the key-value timeout
19
+ # @param key [Object]
20
+ # @param value [Object]
21
+ # @param exp [Integer] - the key-value timeout
22
22
  def set key, value, exp
23
23
  @redis.setex key, exp, value
24
24
  end
@@ -4,10 +4,10 @@ module AwsDevUtils
4
4
  class CacheWrapper
5
5
  include AwsDevUtils::Utils
6
6
 
7
- # Initialize a new CacheWrapper
8
- # Internal use only
9
- # @params client - Aws client / NextTokenWrapper / RetryWrapper
10
- # @param [Integer] exp - the key-value timeout
7
+ # Initialize a new CacheWrapper, Internal use only
8
+ #
9
+ # @param client [Aws client, NextTokenWrapper, RetryWrapper]
10
+ # @param exp [Integer] - the key-value timeout
11
11
  def initialize client, exp=60
12
12
  @client = client
13
13
  @exp = exp
@@ -1,3 +1,3 @@
1
1
  module AwsDevUtils
2
- VERSION = '1.4.3'
2
+ VERSION = '1.4.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-dev-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infastructure