Alkey

Latest version: v0.7.1

Safety actively analyzes 619504 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.7

Also invalidate single relations: when an instance is invalidated, we
also look for any relations that the instance "belongs to" and we
invalidate their cache as well.

For example, given somethinf like:

class Order(...):
user_id = ...
user = relation(...)

Previously when saving a new order like this:

order = Order()
user.orders.append(order)

This would bust the user cache -- because sqlalchemy knew that the user
had been edited and would include it in the session's `dirty` map. However
if you saved an order like this:

order = Order(user_id=1234)

Sqlalchemy didn't pick up on the user relation. So, this release introduces
an *attempt* to pick up on these changes manually.

(At the time of writing, it's been tested successfully in a proprietary app
but the tests haven't been ported here).

0.6

Refactor the redis integration out to `pyramid_redis` and lose the `trace` module.

0.5

* wrap calls to redis with a resilient function that retries on a connection
error and fails silently when its safe to do so

0.4.1

* rebuild sdist without logging

0.4

* provide a reified `request.redis` client, instead of calling `request.redis()`
to get a redis client.

0.3.1

* add optional ``alkey.trace.trace_redis`` function to integrate the redis
client with new relic monitoring.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.