Skip to content
Discussion options

You must be logged in to vote

Hello. It depends on the cache and lock settings. If you leave array, then there will be no locks.

I recommend using redis sentinel for cache and lock. But you can use a database for cache, then you will get full-fledged transactions at the database level.

/**
* Storage of the state of the balance of wallets.
*/
'cache' => [
'driver' => env('WALLET_CACHE_DRIVER', 'array'),
'ttl' => env('WALLET_CACHE_TTL', 24 * 3600),
],
/**
* A system for dealing with race conditions.
*/
'lock' => [
'driver' => env('WALLET_LOCK_DRIVER', 'array'),
'seconds' => env('WAL…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 704403314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants