Skip to content

Conversation

@CarlSchwan
Copy link
Member

@CarlSchwan CarlSchwan commented Jun 29, 2022

This is an helpful helper that should be used in more place than just
server and this is already the case with groupfodlers, deck, user_oidc
and more using it, so let's make it public

how to port your app

find lib -iname '*.php' -exec sed -i 's/OC\\Cache\\Capped/OCP\\Cache\\Capped/g' {} \;

@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Jun 29, 2022
@CarlSchwan CarlSchwan added this to the Nextcloud 25 milestone Jun 29, 2022
@CarlSchwan CarlSchwan requested a review from a team June 29, 2022 13:36
@CarlSchwan CarlSchwan self-assigned this Jun 29, 2022
@CarlSchwan CarlSchwan requested review from blizzz, icewind1991 and skjnldsv and removed request for a team June 29, 2022 13:36
@CarlSchwan CarlSchwan force-pushed the feat/capped-memorycache-ocp branch 4 times, most recently from c857fa5 to 62681dd Compare June 29, 2022 14:53
Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More return type hints. Ok to have the concrete implementation in the public namespace in this case.

/**
* @since 25.0.0
*/
public function remove($key) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function remove($key) {
public function remove($key): bool {

* @inheritdoc
* @since 25.0.0
*/
public function clear($prefix = '') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function clear($prefix = '') {
public function clear($prefix = ''): bool {

* @return T[]
* @since 25.0.0
*/
public function getData() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function getData() {
public function getData(): array {

}


private function garbageCollect() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private function garbageCollect() {
private function garbageCollect(): void {

@CarlSchwan CarlSchwan force-pushed the feat/capped-memorycache-ocp branch from 62681dd to f905059 Compare July 14, 2022 13:46
This is an helpful helper that should be used in more place than just
server and this is already the case with groupfodlers, deck, user_oidc
and more using it, so let's make it public

Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the feat/capped-memorycache-ocp branch from f905059 to d5c23db Compare July 14, 2022 13:54
@CarlSchwan CarlSchwan merged commit f6b37e6 into master Jul 18, 2022
@CarlSchwan CarlSchwan deleted the feat/capped-memorycache-ocp branch July 18, 2022 08:32
@skjnldsv skjnldsv mentioned this pull request Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants