Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #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
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 11:35. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.