P
Paw Pedersen
Is there a way to save a variabel that can be access from a static method?
I hope there would be some way to save it in memory so I don't have to save
it in a file. It's only for a few minutes the information have to be stored.
It's a simple static method that will be call with a guid in the input
parameter and return a integer telling how many times it have been called
with exactly this guid. After 1 minute it will not be called with the same
guid again.
I know I can solve it by saving the info to a file or database but then I
have to implement some kind of cleanup, since the method don't know when
it's the last time it has been called with a specific guid.
Regards Paw
I hope there would be some way to save it in memory so I don't have to save
it in a file. It's only for a few minutes the information have to be stored.
It's a simple static method that will be call with a guid in the input
parameter and return a integer telling how many times it have been called
with exactly this guid. After 1 minute it will not be called with the same
guid again.
I know I can solve it by saving the info to a file or database but then I
have to implement some kind of cleanup, since the method don't know when
it's the last time it has been called with a specific guid.
Regards Paw