John Paul E. Balandan, CPA
ea6469b852
Manual cleanup of comments and docblocks
2021-07-28 23:26:26 +08:00
John Paul E. Balandan, CPA
b7ec33cd56
Remove superfluous phpdoc tags ( #4941 )
2021-07-24 19:30:51 +08:00
John Paul E. Balandan, CPA
0ee2b2f922
Add file-level headers
2021-07-19 23:04:56 +08:00
John Paul E. Balandan, CPA
a6cfb8c1e6
Remove useless code separator comments ( #4946 )
2021-07-19 21:08:51 +08:00
John Paul E. Balandan, CPA
a4fe347638
Add ?
to nullable typehints
2021-07-09 23:13:08 +08:00
John Paul E. Balandan, CPA
1dc72c1d65
Convert is_null to null === and fix phpstan errors
2021-07-09 00:08:00 +08:00
John Paul E. Balandan, CPA
a0dca3d5ba
Enable method_argument_space
fixer
2021-06-17 21:24:27 +08:00
John Paul E. Balandan, CPA
de234899aa
Sort phpdoc types alphabetically
2021-06-11 23:46:56 +08:00
John Paul E. Balandan, CPA
2b78883c06
Align phpdocs
2021-06-08 12:11:23 +08:00
John Paul E. Balandan, CPA
4129b40cb6
Use short forms of param and return types
2021-06-08 11:46:56 +08:00
John Paul E. Balandan, CPA
d030096732
Enable braces
2021-06-08 10:15:25 +08:00
John Paul E. Balandan, CPA
7b37453fcc
Enable blank_line_before_statement
fixer
2021-06-08 01:26:32 +08:00
Jérôme Gamez
ebf8dac403
Remove unused local variables
2021-06-07 10:58:53 +02:00
John Paul E. Balandan, CPA
e04d17b390
Convert tabs to 4 spaces ( #4771 )
2021-06-04 22:51:52 +08:00
Abdul Malik Ikhsan
3e4e414326
[Rector] Remove @var from class constant by add custom Rector rule RemoveVarTagFromClassConstantRector
2021-06-02 10:47:44 +07:00
Abdul Malik Ikhsan
77d7d1bd3e
[Rector] Apply Rector: VarConstantCommentRector
2021-06-01 17:13:21 +07:00
Abdul Malik Ikhsan
ed5aa8c814
[Rector] Apply Rector : ListToArrayDestructRector
2021-05-26 13:29:51 +07:00
MGatner
9f7752583c
Increase handler robustness
2021-05-17 15:29:49 +00:00
Abdul Malik Ikhsan
5100041d0e
[Rector] Update rector 0.11.2
2021-05-14 20:16:31 +07:00
MGatner
4d294c275d
Limit filenames
2021-05-10 16:12:18 +00:00
MGatner
33969f77c3
Fix key name typo
2021-05-05 18:46:30 +00:00
MGatner
490abe8d8e
Apply review recommendations
2021-05-05 14:39:12 +00:00
MGatner
01f8b4bd60
Add cache key validation and hashing
2021-05-04 18:40:50 +00:00
John Paul E. Balandan, CPA
1635b4725d
Allow covariant returns and optimize code
2021-05-02 02:48:38 +08:00
MGatner
0118201fc9
Merge pull request #4629 from MGatner/cache-expires
...
Cache getMetadata() Format
2021-05-01 13:03:28 -04:00
MGatner
13fd337e30
Merge pull request #4630 from MGatner/cache-clean
...
Cache Returns Types
2021-05-01 13:03:04 -04:00
Yassine Doghri
b31b38cd15
fix(rector): change array_push to array assign
2021-05-01 15:30:39 +00:00
Yassine Doghri
5913f425d9
perf(redis): call del function only once with all the matchedKeys
...
- perf(FileHandler): do not sort files when using glob
- update docstrings
2021-05-01 15:30:38 +00:00
Yassine Doghri
9377ec1b39
fix(cache): add check for redis empty results in deleteMatching
...
- update deleteMatching tests to check prefix and suffix patterns
against a significant pool of items:
--> tests weren't suppose to pass previously, but they did because of the small number of tested items.
- return number of deleted matched items in deleteMatching instead of success or failure
- update user_guide
2021-05-01 15:30:37 +00:00
MGatner
d7dcf0f919
Improve expiry handling
2021-05-01 14:55:47 +00:00
MGatner
9fbbe896e6
Update handler docblocks
2021-05-01 14:52:06 +00:00
MGatner
53bcd7a896
Fix docblock return types
2021-04-30 20:02:02 +00:00
MGatner
8375fd59e7
Standardize getMetadata
2021-04-30 18:07:44 +00:00
Yassine Doghri
3a42db199c
refactor: move deleteMatching out of CacheInterface to BaseHandler
...
fix memcached tests by checking if it throws an exception
2021-04-19 10:37:49 +00:00
Yassine Doghri
72934cd139
fix: throw exception if deleteMatching used with memcached/wincache
2021-04-19 10:37:48 +00:00
Yassine Doghri
82991df241
fix(rector): update code style
2021-04-19 10:37:48 +00:00
Yassine Doghri
9d9bae3aa2
feat(cache): add deleteMatching method to remove multiple cache items at once using a glob pattern
...
The implementation is only effective for file and redis/predis handlers.
Because of certain limitations, memcached and wincache handlers do not implement the method.
Both would require to go through the whole cache store (if it ever could) and match each keys
against the glob pattern. That would inevitably result in performance issues.
2021-04-19 10:37:47 +00:00
MGatner
f66075adc0
Allow chmod failures on cache write
2021-04-06 13:22:59 +00:00
kenjis
7b9a7b2507
fix: change to the framework's generic ExceptionInterface
2021-03-01 17:00:41 +09:00
kenjis
7085a333e3
docs: CodeIgniter\Cache\Exceptions\ExceptionInterface to be deprecated
2021-03-01 16:43:14 +09:00
Agung Sugiarto
7a0b54da61
Cache remember ( #4107 )
...
* Implement cache remember
* Remove method remember from interface
* Cache move to BaseHandler
* Update documentation for cache remember
* Fix duplicate object description in user guide
* Update caching.rst
Co-authored-by: John Paul E. Balandan, CPA <51850998+paulbalandan@users.noreply.github.com>
2021-01-28 23:57:41 +08:00
John Paul E. Balandan, CPA
958a564f17
Use trait to tweak file and line of exceptions ( #4118 )
2021-01-22 15:09:48 +08:00
MGatner
06b92259cf
Allow '0' cache prefix
2021-01-15 14:28:42 +00:00
MGatner
9b9bc39683
Implement review property check
2021-01-15 14:26:39 +00:00
MGatner
6d2fec9bce
Add Cache File mode
2021-01-14 19:30:17 +00:00
John Paul E. Balandan, CPA
32978d2598
Fix whitespaces for system/
2020-11-19 01:25:50 +08:00
John Paul E. Balandan, CPA
81888e2545
Remove package tag
2020-10-28 19:28:07 +08:00
John Paul E. Balandan, CPA
c3dcd05e35
Use short notices for header docblock
2020-10-25 21:38:43 +08:00
John Paul E. Balandan, CPA
7dd927fbe3
Enforce consistent file-level docblock across all system files
2020-10-25 21:29:13 +08:00
Abdul Malik Ikhsan
b8ad7782ab
apply rector: set auto import FQCN
2020-10-11 13:22:34 +07:00