8000 lock method creates empty folder · Issue #375 · tedious/Stash · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lock method creates empty folder #375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
benjaminfunk opened this issue Jan 4, 2018 · 0 comments
Open

lock method creates empty folder #375

benjaminfunk opened this issue Jan 4, 2018 · 0 comments

Comments

@benjaminfunk
Copy link
benjaminfunk commented Jan 4, 2018

If i use the lock method, the cache system creates an empty folder. Is that normal? This is my setup:

$objCacheDriver = new \Stash\Driver\FileSystem(
[
	'path' => $this->objConfig->get('cache.file.path')
]);

$objCache = new \Stash\Pool($objCacheDriver);

$objCacheItem = $objCache->getItem('product.1233.444.555');

$mixCacheData = $objCacheItem->get();

if ($objCacheItem->isMiss())
{
	$objCacheItem->lock();

	$mixCacheData = 1337;

	$objCacheItem->set($mixCacheData);

	$objCache->save($objCacheItem);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0