Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
<?php | |
# create our client object | |
$gmclient= new GearmanClient(); | |
# add the default server (localhost) | |
$gmclient->addServer(); | |
# run email client in the background | |
$arr = array($_GET['id'],$_GET['msg']); | |
$data = serialize($arr); //serialize to send data |
__all__ = ['visible', 'cacheable', 'callable_find_by', 'property_find_by'] | |
def cacheable_decorator(lookup): | |
def func(self): | |
if not hasattr(self, '_elements_cache'): | |
self._elements_cache = {} # {callable_id: element(s)} | |
cache = self._elements_cache | |
key = id(lookup) | |
if key not in cache: |