Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
requirement: bump redis from 5.1.0 to 5.1.1 (#399)
Browse files Browse the repository at this point in the history
Bumps [redis](https://github.com/redis/redis-py) from 5.1.0 to 5.1.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/redis/redis-py/releases">redis's
releases</a>.</em></p>
<blockquote>
<h2>5.1.1</h2>
<h1>Changes</h1>
<h2>5.1.1</h2>
<h3>🐛 Bug Fixes</h3>
<ul>
<li>Fixed return type for Redis Set commands to be Set instead of List
(<a
href="https://redirect.github.com/redis/redis-py/issues/3399">#3399</a>)</li>
<li>Fixed bug with partial Hiredis availability (<a
href="https://redirect.github.com/redis/redis-py/issues/3400">#3400</a>)</li>
<li>Fixed bug with async pipeline and cluster fails with some commands
(<a
href="https://redirect.github.com/redis/redis-py/issues/3402">#3402</a>)</li>
</ul>
<h2>5.1.0</h2>
<h3>🚀 New Features</h3>
<ul>
<li>Client-side caching (<a
href="https://redirect.github.com/redis/redis-py/issues/3350">#3350</a>,
<a
href="https://redirect.github.com/redis/redis-py/issues/3110">#3110</a>,
<a
href="https://redirect.github.com/redis/redis-py/issues/3102">#3102</a>,
<a
href="https://redirect.github.com/redis/redis-py/issues/3099">#3099</a>,
<a
href="https://redirect.github.com/redis/redis-py/issues/3089">#3089</a>,
<a
href="https://redirect.github.com/redis/redis-py/issues/3038">#3038</a>)</li>
</ul>
<h4>How to start with Client-side caching?</h4>
<ol>
<li>Install redis-py 5.1.0</li>
<li>Use the following code snippet:</li>
</ol>
<pre lang="python"><code>r = Redis(protocol=3,
cache_config=CacheConfig())
<p>cache = r.get_cache()<br />
r.set(&quot;foo&quot;, &quot;bar&quot;)</p>
<h1>get key from redis and save in local cache</h1>
<p>print(r.get(&quot;foo&quot;))</p>
<h1>get key from local cache</h1>
<p>print(cache.get(CacheKey(command=&quot;GET&quot;,
redis_keys=(&quot;foo&quot;,))).cache_value)</p>
<h1>change key in redis (cause invalidation)</h1>
<p>r.set(&quot;foo&quot;, &quot;barbar&quot;)</p>
<h1>Retrieves a new value from server and cache it</h1>
<p>print(r.get(&quot;foo&quot;))</p>
<h1>Make sure that new value was cached</h1>
<p>print(cache.get(CacheKey(command=&quot;GET&quot;,
redis_keys=(&quot;foo&quot;,))).cache_value)<br />
</code></pre></p>
<p>Check <a
href="https://redis.readthedocs.io/en/latest/resp3_features.html#client-side-caching">documentation</a>
to get more examples</p>
<h3>🔥 Breaking Changes</h3>
<ul>
<li>Timeseries insertion filters for close samples (<a
href="https://redirect.github.com/redis/redis-py/issues/3228">#3228</a>)</li>
<li>Enhanced classes string representation (<a
href="https://redirect.github.com/redis/redis-py/issues/3001">#3001</a>)</li>
<li>Partial clean up of Python 3.7 compatibility (<a
href="https://redirect.github.com/redis/redis-py/issues/2928">#2928</a>)</li>
<li>Handle Redis Set data type as Python list to avoid a limitations
with nested dictionaries (<a
href="https://redirect.github.com/redis/redis-py/issues/3324">#3324</a>)</li>
</ul>
<h2>Contributors</h2>
<p>We'd like to thank all the contributors who worked on this
release!</p>
<p><a
href="https://github.com/vladvildanov"><code>@​vladvildanov</code></a>
<a
href="https://github.com/dmaier-redislabs"><code>@​dmaier-redislabs</code></a>
<a
href="https://github.com/vineethvkumar"><code>@​vineethvkumar</code></a>
<a
href="https://github.com/ramchandra-st"><code>@​ramchandra-st</code></a>
<a
href="https://github.com/RafalBielickiIM"><code>@​RafalBielickiIM</code></a>
<a href="https://github.com/jules-ch"><code>@​jules-ch</code></a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/redis/redis-py/commit/4b3a6d0ef351c3707ae0386eae8f7a51f8a9c81e"><code>4b3a6d0</code></a>
Updated package version (<a
href="https://redirect.github.com/redis/redis-py/issues/3403">#3403</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/e20f354f0d94ba4982c465119d96911eb6dd9870"><code>e20f354</code></a>
Fix bug with async pipeline and cluster fails with some commands (<a
href="https://redirect.github.com/redis/redis-py/issues/3402">#3402</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/aa222251ef52af952a25b271285410ecea8f29d7"><code>aa22225</code></a>
Fix bug with partial Hiredis availability (<a
href="https://redirect.github.com/redis/redis-py/issues/3400">#3400</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/c31849cbc757f7346b87e1365735be6fc3829710"><code>c31849c</code></a>
Fix bug with Redis Set commands returns List instead of Set (<a
href="https://redirect.github.com/redis/redis-py/issues/3399">#3399</a>)</li>
<li>See full diff in <a
href="https://github.com/redis/redis-py/compare/v5.1.0...v5.1.1">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=redis&package-manager=pip&previous-version=5.1.0&new-version=5.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 7, 2024
1 parent a86632a commit bc5c310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ model-bakery==1.19.5
osm_opening_hours==0.1.1
psycopg==3.2.3
PyJWT==2.6.0 # conflit avec ggshield sur versions supérieures
redis==5.1.0
redis==5.1.1
requests==2.32.3
sentry-sdk==2.14.0
sib-api-v3-sdk==7.6.0
Expand Down

0 comments on commit bc5c310

Please sign in to comment.