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.0.8 to 5.1.0 (#391)
Browse files Browse the repository at this point in the history
Bumps [redis](https://github.com/redis/redis-py) from 5.0.8 to 5.1.0.
<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.0</h2>
<h1>Changes</h1>
<h2>🚀 New Features</h2>
<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>
<h3>How to start with Client-side caching?</h3>
<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>
<h2>🔥 Breaking Changes</h2>
<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>
</ul>
<h2>🐛 Bug Fixes</h2>
<ul>
<li>Handle RESP3 sets as Python lists (<a
href="https://redirect.github.com/redis/redis-py/issues/3324">#3324</a>)</li>
<li>Prevent async ClusterPipeline instances from becoming
&quot;false-y&quot; (<a
href="https://redirect.github.com/redis/redis-py/issues/3068">#3068</a>)</li>
<li>Add hostname field to _parse_node_line (<a
href="https://redirect.github.com/redis/redis-py/issues/3343">#3343</a>)</li>
<li>More docs fixes (<a
href="https://redirect.github.com/redis/redis-py/issues/3326">#3326</a>)</li>
<li>Delete the first-defined (and thus &quot;duplicate&quot;) Script
class (<a
href="https://redirect.github.com/redis/redis-py/issues/3333">#3333</a>)</li>
<li>Catch a known DeprecationWarning when calling .close() (<a
href="https://redirect.github.com/redis/redis-py/issues/3335">#3335</a>)</li>
<li>Add missed redismod at test_commands.py (<a
href="https://redirect.github.com/redis/redis-py/issues/3369">#3369</a>)</li>
</ul>
<h2>🧰 Maintenance</h2>
<ul>
<li>Update README.md - mentioning redis 7.4 support (<a
href="https://redirect.github.com/redis/redis-py/issues/3375">#3375</a>)</li>
<li>Update PyPy 3.8 to 3.10 in CI (<a
href="https://redirect.github.com/redis/redis-py/issues/3370">#3370</a>)</li>
<li>Updated commands from docker-compose to docker compose (<a
href="https://redirect.github.com/redis/redis-py/issues/3352">#3352</a>)</li>
<li>Added version restrictions for pytest-asyncio (<a
href="https://redirect.github.com/redis/redis-py/issues/3362">#3362</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/redis/redis-py/commit/7215a525daac21ab4a91ad90902a7a4e584053a5"><code>7215a52</code></a>
Updated package version (<a
href="https://redirect.github.com/redis/redis-py/issues/3389">#3389</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/2e46613dcdf9db7f948f3258fee1c9199da8cbfa"><code>2e46613</code></a>
Client side caching refactoring (<a
href="https://redirect.github.com/redis/redis-py/issues/3350">#3350</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/7d73d742d6df4b3d6f6a1f0ec73e72d4a02add74"><code>7d73d74</code></a>
DOC-4197: add TCEs to the geospatial query page (<a
href="https://redirect.github.com/redis/redis-py/issues/3378">#3378</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/c7483b3d63a2001508a2ff2c9952ad50d9252732"><code>c7483b3</code></a>
DOC-4196: add TCEs to the full-text query page (<a
href="https://redirect.github.com/redis/redis-py/issues/3377">#3377</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/64d4bb8040718f8e5fa30481d0b7409ecb1b0d67"><code>64d4bb8</code></a>
DOC-4194: add TCEs to the range query page (<a
href="https://redirect.github.com/redis/redis-py/issues/3374">#3374</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/0c8a98624ce48a030ecf9dbadd6ec522bd6bf1ad"><code>0c8a986</code></a>
DOC-4194: add TCEs to the exact match query page (<a
href="https://redirect.github.com/redis/redis-py/issues/3372">#3372</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/cbb129d8a1876142f6c92b8d3c5ca23b4948ac94"><code>cbb129d</code></a>
Update README.md - mentioning redis 7.4 support (<a
href="https://redirect.github.com/redis/redis-py/issues/3375">#3375</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/2fb40c10014c0b10fdb5005d0e7b5f2f4cdc1e00"><code>2fb40c1</code></a>
TCEs for select command pages (<a
href="https://redirect.github.com/redis/redis-py/issues/3361">#3361</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/e00f3d2110f5b80c6ef37c3e3373c2bfb6ffb5f5"><code>e00f3d2</code></a>
Add missed redismod at test_commands.py (<a
href="https://redirect.github.com/redis/redis-py/issues/3369">#3369</a>)</li>
<li><a
href="https://github.com/redis/redis-py/commit/6c94faa827274ef3da2c7887d0a9c29b26b6a53f"><code>6c94faa</code></a>
Update PyPy 3.8 to 3.10 in CI (<a
href="https://redirect.github.com/redis/redis-py/issues/3370">#3370</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/redis/redis-py/compare/v5.0.8...v5.1.0">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.0.8&new-version=5.1.0)](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 3, 2024
1 parent 5978d6b commit 08ec216
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.2
PyJWT==2.6.0 # conflit avec ggshield sur versions supérieures
redis==5.0.8
redis==5.1.0
requests==2.32.3
sentry-sdk==2.14.0
sib-api-v3-sdk==7.6.0
Expand Down

0 comments on commit 08ec216

Please sign in to comment.