Skip to content

Allow @CacheUpdate on method returning void #6

Description

@benjamindulau

It would be nice to be able to do something like the following:

<?php

/**
 * @CacheUpdate(caches="users", key="#user.getUsername()", value="#user")
 */ 
public function saveUser(User $user)
{
    // .. saves user and return void
}

Not sure about the "#" notation for value option since it could let think that it is an expression.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions