Overview

Namespaces

  • None
  • Wei
    • Validator

Classes

  • Apc
  • App
  • ArrayCache
  • Asset
  • Base
  • BaseCache
  • BaseController
  • Bicache
  • Cache
  • Config
  • Cookie
  • Couchbase
  • Counter
  • Db
  • DbCache
  • E
  • Env
  • Error
  • FileCache
  • Gravatar
  • Http
  • Lock
  • Logger
  • Memcache
  • Memcached
  • MongoCache
  • Password
  • PhpError
  • PhpFileCache
  • Pinyin
  • Record
  • Redis
  • Request
  • Response
  • Router
  • SafeUrl
  • Session
  • Soap
  • T
  • Ua
  • Upload
  • Url
  • Uuid
  • Validate
  • View
  • WeChatApp
  • Wei
  • Overview
  • Namespace
  • Class

Class Lock

A service that provide the functionality of exclusive Lock

Wei\Base
Extended by Wei\Lock
Namespace: Wei
Author: Twin Huang twinhuang@qq.com
Located at Lock.php
Methods summary
public
# __construct( array $options = array() )

Constructor

Constructor

Parameters

$options

Throws

InvalidArgumentException
When option "wei" is not an instance of "Wei\Wei"

Overrides

Wei\Base::__construct()
public boolean
# __invoke( string $key )

Acquire a lock key

Acquire a lock key

Parameters

$key

Returns

boolean
public boolean
# release( string $key )

Release a lock key

Release a lock key

Parameters

$key

Returns

boolean
public
# releaseAll( )

Release all lock keys

Release all lock keys

public
# catchSignal( )

Release all lock keys and exit

Release all lock keys and exit

Methods inherited from Wei\Base
__call(), __get(), getOption(), setOption()
Properties summary
protected array $keys
# array()
Properties inherited from Wei\Base
$providers, $wei
Magic properties summary
public Wei\Cache $cache

A cache service

Wei Framework API documentation generated by ApiGen