Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有应该缓存的配置表。我只在应用程序启动时加载该表一次所有数据都不会被修改并且将被只读使用所以问题是我需要一些像 Ehcache 这样的缓存还是一些静态 Map 就足够了?
我认为静态地图就足够了。(在我的应用程序中,我通常使用这种方法进行应用程序全局配置)。
但这是我的方法。
我试过这个例子:
#!C:/Perl64/bin/perl.exe $mickey = "Hi i'm Mickey"; $pluto = "Hi i'm Pluto"; print <<EOF; $pluto Hi i'm Goofy $mickey EOF print &