123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace Cas\Controller\CmdLine;
- use KIF\Cache\Memcached;
- use Cas\Module\LotteryEventsTypeInvitation;
- use Cas\Dao\LotteryData;
- use Cas\Module\Lottery;
- /**
- *
- * 删除活动参与缓存
- * php index.php -cCmdLine_Test
- */
- class Test extends Controller{
-
- public function doDefault() {
-
- $event_id = 5;
- $userIds = array(
- 55,
- 59,
- 61,
- 62,
- 64,
- 65,
- 66,
- 67,
- 71,
- 76,
- 77,
- 83,
- 85
- );
- $objMemcached = new Memcached();
- foreach($userIds as $uid){
- $key = "lottery_{$uid}_{$event_id}_participation_user_all_num";
- $objMemcached -> delete($key);
- self::echo_msg("清除行为uid:{$uid}");
- }
- exit;
- }
-
-
- }
|