coldfusion - How to cache rarely changed many-to-one entity in CF ORM? -
How to cache at least one unit in CF ORM, such as user type where only & lt ; 10 types? I do not want to choose to get additional type name.
Why? Any XML needs first configuration?
>
If UserType is a component, you can use cacheuse = Read-only "cachename =" UserType ". The only fastest to read and is good for such matters as you describe.
In my experience, just hoping that caching was not your reason, while specifying the cache value on the property in the owner's component ... I need to specify it directly on component-to-cached
Because you are using only for reading speed, you will need some space to cache when you need the data:
ormEvictEntity ("UserType") ;
Comments
Post a Comment