cacheflow 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -1
- data/lib/cacheflow/memcached.rb +5 -1
- data/lib/cacheflow/version.rb +1 -1
- data/lib/cacheflow.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6080f46e40efef7ff1bea205ff685aecd6057996c3b8dc98601883b22a323791
|
4
|
+
data.tar.gz: b78f678270ea70bdf0f55de264337302c39ecce2e9c62835bdd02aa8ab7b33d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bb9f8cb1232710849b248a52abe2d85a223bfd49c8bf90b5d325102b1ea35e71363c52598d727e0cd2fa6ca9a6952127ce059aba59262cc1295dea3f585863e
|
7
|
+
data.tar.gz: 79febce9eafa8f777f4ca4c86a166be1e17c5cef655250d4fd12bfe3ccbcbae2d9f18bddf30ac15b50296a621796f80a10709b79b28bde4837f2188b8e6a1bee
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,12 +6,14 @@ Colorized logging for Memcached and Redis
|
|
6
6
|
|
7
7
|
Works with the Rails cache, as well as [Dalli](https://github.com/petergoldstein/dalli) and [Redis](https://github.com/redis/redis-rb) clients directly
|
8
8
|
|
9
|
+
[![Build Status](https://github.com/ankane/cacheflow/workflows/build/badge.svg?branch=master)](https://github.com/ankane/cacheflow/actions)
|
10
|
+
|
9
11
|
## Installation
|
10
12
|
|
11
13
|
Add this line to your application’s Gemfile:
|
12
14
|
|
13
15
|
```ruby
|
14
|
-
gem
|
16
|
+
gem "cacheflow", group: :development
|
15
17
|
```
|
16
18
|
|
17
19
|
When your log level is set to `DEBUG` (Rails default in development), all commands to Memcached and Redis are logged.
|
data/lib/cacheflow/memcached.rb
CHANGED
@@ -23,5 +23,9 @@ module Cacheflow
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
Dalli::
|
26
|
+
if defined?(Dalli::Protocol::Binary)
|
27
|
+
Dalli::Protocol::Binary.prepend(Cacheflow::Memcached::Notifications)
|
28
|
+
else
|
29
|
+
Dalli::Server.prepend(Cacheflow::Memcached::Notifications)
|
30
|
+
end
|
27
31
|
Cacheflow::Memcached::Instrumenter.attach_to(:memcached)
|
data/lib/cacheflow/version.rb
CHANGED
data/lib/cacheflow.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cacheflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|