Test.class.php 675 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace Cas\Controller\CmdLine;
  3. use KIF\Cache\Memcached;
  4. use Cas\Module\LotteryEventsTypeInvitation;
  5. use Cas\Dao\LotteryData;
  6. use Cas\Module\Lottery;
  7. /**
  8. *
  9. * 删除活动参与缓存
  10. * php index.php -cCmdLine_Test
  11. */
  12. class Test extends Controller{
  13. public function doDefault() {
  14. $event_id = 5;
  15. $userIds = array(
  16. 55,
  17. 59,
  18. 61,
  19. 62,
  20. 64,
  21. 65,
  22. 66,
  23. 67,
  24. 71,
  25. 76,
  26. 77,
  27. 83,
  28. 85
  29. );
  30. $objMemcached = new Memcached();
  31. foreach($userIds as $uid){
  32. $key = "lottery_{$uid}_{$event_id}_participation_user_all_num";
  33. $objMemcached -> delete($key);
  34. self::echo_msg("清除行为uid:{$uid}");
  35. }
  36. exit;
  37. }
  38. }