View Single Post
  #1  
Old 23rd May 2021, 22:03
szaby szaby is offline
Senior Member
 
Join Date: Jul 2008
Posts: 34
Default Update memcache data
Hello!

I want to solve it so that you don't have to write this in 3 lines but in array form.

PHP Code:
$cachedData['invites'] = $inv;
$cachedData['seedbonus'] = $cache;
$cachedData['bonuscomment'] = $bonuscomment1;

$memcache->replace($key$cachedDatafalse3600); 
I mean something like this:

PHP Code:
$cachedData = ['invites'=> $inv,'seedbonus'=> $cache,'bonuscomment'=> $bonuscomment1];
                
$memcache->replace($key$cachedDatafalse3600); 
But it doesn't work. Anyone know a solution?
The data is stored in an array:
http://prntscr.com/13bfd0k

Thanks for the help!
Reply With Quote