Skip to content

Add a lock store using SQL databases functions (get_lock, pg_advisory_lock) #25400

Closed
@GromNaN

Description

@GromNaN
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.1

The lock component supports local stores : Semaphore and Flock.
For locking over distributed servers, remote stores require Memcached or Redis.

MySQL/MariaDB and PostgreSQL are database server typically used by Symfony applications. These DB engines support locking:

This locking mencanism is used for session in PdoSessionHandler

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions