-
Notifications
You must be signed in to change notification settings - Fork 22
Plug in API Locking
Tomas Machalek edited this page Apr 6, 2016
·
5 revisions
- type: required
- interface: plugins.abstract.locking.AbstractLock
- client-side code: -
- purpose: a global resource locking mechanism
This plug-in is used to access resources exclusively - currently only as a service for conc_cache. Please note that the implementation of a correct locking mechanism can be quite tricky. If you are not sure about locking issues and plan to use KonText in a high load environment we recommend you to stick with the redis_locking implementation.
# AbstractLock.__enter__()
Enters a critical section.
# AbstractLock.__exit__(exc_type, exc_val, exc_tb)
Exits a critical section.