> define('KEY', 'key'.$counter);
This defines you a constant. It is not updated whenever you increment
$counter.
What you actually want to use is a variable.
You should read up on how to do that in PHP.
(This is not an issue with Redis at all, it is just a misuse of your
programming language)
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
redis-db+u...@googlegroups.com.
> To post to this group, send email to
redi...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/redis-db.
> For more options, visit
https://groups.google.com/d/optout.