Skip to content

Add an expression oriented "condition" option to annotations  #3

@benjamindulau

Description

@benjamindulau

That would be nice to be able to set some conditions on @Cache* annotations.

<?php

/**
 * @Cacheable(caches="users", key="#user.getUsername()", condition="#age > 18")
 */
public function getUser(User $user, $age)
{
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions