\Imi\Cache\AopCacheableAop

Summary

Methods
Properties
Constants
parseLockable()
parseCacheable()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getLockerId()
No private properties found
N/A

Methods

parseLockable()

parseLockable(object  $object, string  $method, array  $args, \Imi\Lock\Annotation\Lockable  $lockable, callable  $taskCallable, callable  $afterLock = null) : mixed

处理 @Lockable 注解

Parameters

object $object
string $method
array $args
\Imi\Lock\Annotation\Lockable $lockable
callable $taskCallable
callable $afterLock

Returns

mixed

parseCacheable()

parseCacheable(\Imi\Aop\AroundJoinPoint  $joinPoint) : mixed

处理 Cacheable 注解

Parameters

\Imi\Aop\AroundJoinPoint $joinPoint

Returns

mixed

getLockerId()

getLockerId(string  $class, string  $method, array  $args, \Imi\Lock\Annotation\Lockable  $lockable) : string

获取ID

Parameters

string $class
string $method
array $args
\Imi\Lock\Annotation\Lockable $lockable

Returns

string