Save variables in RAM or Cache

Hey there,


I need some variables saved in a file where all classes of a project can access to them.

So I would like to save them in the RAM or Cache or whatever. Saving them in a plist in filesystem would not be an option because the variables are only need in current session.


At least in a Swift file it does not work.


Anyone an (easy!) idea what to do, because I'm a beginner ;-) ?


Thank you!