Philipp Holzer
|
de7c026590
|
Some code hardenings for semaphore locking
|
2019-08-26 23:55:54 +02:00 |
|
Philipp Holzer
|
c803dcb6c5
|
Fix Locks
- Wrong return of lock releasing with DBA provider
- It's not possible to maintain Semaphore locks, since they aren't accessible by other processes
Should solve https://github.com/friendica/friendica/issues/7298#issuecomment-521996540
|
2019-08-17 19:33:36 +02:00 |
|
Philipp Holzer
|
2369ea1d50
|
Fix Lock-Unlink
- Check if .sem file exists before unlinking it
- Fixing https://github.com/friendica/friendica/issues/7298#issuecomment-521670482
|
2019-08-15 17:55:17 +02:00 |
|
Philipp Holzer
|
e2e109b8c1
|
Fix getAllKeys() method for memcache instances
|
2019-08-15 14:26:05 +02:00 |
|
Philipp Holzer
|
41e2031e6b
|
Console Lock
WIP
|
2019-08-15 14:26:04 +02:00 |
|
Philipp Holzer
|
d2211bd6dd
|
Removed some leftovers
|
2019-08-04 15:58:53 +02:00 |
|
Philipp Holzer
|
19777baa79
|
- Move constants to the "Cache" class (more transparent than inside the interface)
|
2019-08-04 15:53:28 +02:00 |
|
Philipp Holzer
|
34e4968c06
|
Adding possibility to use a different cache-backend for locking and caching
- Renaming *LockDriver to *Lock since it isn't a "driver" anymore
|
2019-08-04 15:42:39 +02:00 |
|
Philipp Holzer
|
86bf2ee45a
|
Rename *CacheDriver to *Cache because they don't act as driver anymore
|
2019-08-04 10:26:53 +02:00 |
|
Philipp Holzer
|
d56bd28a07
|
Refactor Cache/Lock to DICE
- Refactor Cache classes
- Refactor Lock classes
- Improved test speed (removed some seperate class annotations)
|
2019-08-03 20:51:58 +02:00 |
|
Philipp Holzer
|
07bd4cec65
|
Fixing redis cachekey
|
2019-03-04 21:28:36 +01:00 |
|
Philipp Holzer
|
aae58815a8
|
Adjust update parameters:
-f|--force Force the update command (Even if the database structure matches)
-o|--override Override running or stalling updates
|
2019-02-24 12:24:09 +01:00 |
|
Philipp Holzer
|
7ce549c294
|
fixing delete
|
2019-02-24 10:27:56 +01:00 |
|
Philipp Holzer
|
9b07132b80
|
Fixing force-flag for lock-releasing
|
2019-02-24 10:08:28 +01:00 |
|
Philipp Holzer
|
433d6abe8c
|
Refactoring DBA-mocking tests
- Reducing DB-dependencies
- Creating DB-cache mocks
- Creating DB-lock mocks
- Switching to mocked dependencies for Cache/Lock/App
|
2019-02-02 19:03:15 +01:00 |
|
Hypolite Petovan
|
ecea7425f8
|
Rename DBA::is_result to DBA::isResult
|
2018-07-23 11:04:14 -04:00 |
|
Hypolite Petovan
|
0ec44f3e8a
|
Rename DBM method calls to DBA method calls
|
2018-07-23 11:02:24 -04:00 |
|
Hypolite Petovan
|
af6dbc654f
|
Rename Friendica\Database\dba to Friendica\Database\DBA
|
2018-07-20 08:19:26 -04:00 |
|
Hypolite Petovan
|
daa1177e3a
|
Update use statement lists with new Friendica\Database\dba class
- Remove unused use statement
- Remove superfluous use statements (classes in the same namespace)
- Add missing use statements
|
2018-07-19 22:15:21 -04:00 |
|
Philipp Holzer
|
80a4e6263f
|
Added Unittests for cache
fixed Lock & Cache bugs
|
2018-07-07 19:46:16 +02:00 |
|
Philipp Holzer
|
34cea93a8b
|
Bugfixings for Cache-Lock
- used wrong cachekey in set
- therefore added an abstraction to avoid wrong key concatenation
- forgot to increase the db-version to 1275
|
2018-07-05 21:47:52 +02:00 |
|
Philipp Holzer
|
e41e7d2edd
|
Fixings
- fixed test for semaphore
- fixed some issues
- changed namespace in Tests back to "src/"
- changed namings
|
2018-07-05 20:57:31 +02:00 |
|
Philipp Holzer
|
906bb25972
|
code standards / simplifications
|
2018-07-05 07:59:56 +02:00 |
|
Philipp Holzer
|
aac94d1d74
|
Adding multihost - locking
Adding Unit-Tests for it
|
2018-07-04 23:37:22 +02:00 |
|
Philipp Holzer
|
ad5ee75159
|
Deleting parameter-types of methods (lack of support in PHP 5.6)
|
2018-06-28 23:06:14 +02:00 |
|
Philipp Holzer
|
4b7be15560
|
Deleting return-types of methods
|
2018-06-28 23:02:00 +02:00 |
|
Philipp Holzer
|
3f7e4f5bb6
|
redesign of locking & caching
- New Factory "CacheDriverFactory" for Cache and Locks
- Adding Redis/Memcached Locking
- Moved Lock to Core
- other improvements
|
2018-06-28 22:57:17 +02:00 |
|
Philipp Holzer
|
a57e6cfa1b
|
Moved Lock.php back to Utils
|
2018-06-26 23:28:07 +02:00 |
|
Philipp Holzer
|
0218d16335
|
Lock abstraction (like the Cache)
- adding interface
- adding seperate drivers
- moving Lock to the Core package
|
2018-06-26 22:31:04 +02:00 |
|