1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

feat(console): update CacheSetCommand #543

This commit is contained in:
Awilum
2021-09-21 14:16:04 +03:00
parent f738ffe649
commit 990141b78b

View File

@@ -35,10 +35,10 @@ class CacheSetCommand extends Command
$ttl = $input->getArgument('ttl') ?? 300;
if (cache()->set($key, $value, $ttl)) {
$io->success('Value for key ' . $key . ' stored.');
$io->success('Cache item with key ' . $key . ' create.');
return Command::SUCCESS;
} else {
$io->error('Value for key ' . $key . ' wasn\'t created.');
$io->error('Cache item with key ' . $key . ' wasn\'t created.');
return Command::FAILURE;
}
}