Can I use to.String() method with NamedCache

Hi,
I have a distributed cache. Can I use to.String() method to print the contents of cache on the console. In my case it is not working..Do I neet to import anything?
NamedCache cache = CacheFactory.getCache("Test");
cache.put("hello", "world");
System.out.println(cache.toString());
Thanks,
Chaya

Hi Chaya,
Assuming that I understand your question correctly, each JVM has the same view of the cache if you're using a distributed (or optimistic, replicated, ...) cache. So when you add records from one JVM, they are visible to all the JVMs immediately (if you start up a new JVM, it will join the cluster and share the data as well).
So if you populate a named cache from JVM1, you can simply execute the display code (from my previously reply) in any JVM connected through Coherence, and it will display the entire contents of the logical named cache.
Jon Purdy
Tangosol, Inc.

Similar Messages

  • Can I use box-counting method to calculate fractal dimension in Photoshop CS6?

    Can I use box-counting method to calculate fractal dimension in Photoshop CS6?

    If you have a thresholded image, then you can use the mosaic filter and histograms to count coverage.
    Iterate with mosaic at different sizes, use the histograms to see how many are black and white at east mosaic size.
    Or resize the image, re-threshold, and again use the histogram to get a count.
    That should be automatable with a script.

  • Can I use my credit card with a foreign iTunes Store.

    Hi,
    I am currently living in Malaysia.
    I was originally using the Singaporean iTunes Store, and I have many apps purchased from that store.
    My question is: can I use my Malaysian Visa with the Singaporean iTunes Store?
    I previously used a Singaporean Visa credit card for purchases.
    is it possible to use a Malaysian Visa card for purchases as well?

    The Complete Guide to Using the iTunes Store
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."

  • How can I use my Apple ID with 2 Apple devices?

    I just got an ipad mini and I registered it with the same Apple ID I use for my iphone 4s. Everything was fine until I downloaded apps to the ipad and noticed that the ones I had on both devices  no longer opened on my iphone. Why is this? How can I use my Apple ID with 2 Apple devices and how can I recover my apps on my iphone?

    I've had an iPad for almost two years. When I purchased an iPhone last fall I set it up to use the same Apple ID as my iPhone. I've had no problems doing this. Try resetting each device and see what happens.
    First thing to try is to reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem.

  • How can i use my apple ID with the itune store over my windows laptop

    how can i use my apple ID with the itune store over my windows laptop

    If you don't have iTunes installed on your laptop then you can download and install it from here : http://www.apple.com/itunes/download/
    You can then log into your account on it via the Store > Sign In menu option (on iTunes 11 on a PC you can get the menus to show via control-B) :
    And you can then select the Store on the left-hand sidebar (you can enable the sidebar via control-S), and then browse items in the store and buy them by clickin on their price.

  • Can I use an USB disc with my macbook pro bought in 2005.  What capacity will it take 2.00 or 3.00?

    can I use an USB disc with my macbook pro bought in 2005.  What capacity will it take 2.00 or 3.00?

    The first MacBook Pro's were not released until the beginning of 2006, and they had USB 2 ports.
    Anything available new in 2005 would have been a PowerBook G4 and they also had USB 2 ports.
    A USB 3 disk will just transfer data slower then it could do, if you plug it into a USB 2 port though, so you can buy either.

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • How can I use my time capsule with windows7

    How can I use my time capsule with windows7?

    This is asked regularly.
    https://discussions.apple.com/message/10978060#10978060
    Look at the more like this. On the right column next to the post.
    Load airport utility for windows.. which will also load bonjour for windows.
    In windows explorer type \\TCname or \\TCipaddress (replacing with the actual values.. names with spaces will give you trouble so change all names in the TC to SMB compatible or actual ip address).

  • New to Apple products (finally) - can I use my Itunes account with multiple products e.g. Iphone and Ipad?

    New to Apple products (finally) - can I use my Itunes account with multiple products e.g. Iphone and Ipad?

    Oh yes! Apple will be happy for you to buy as many Apple products as you can afford.
    As and when needed, each can be given its own selections of content to sync with.
    tt2

  • Can i use two apple tvs with one itunes account?

    can i use two apple tvs with one itunes account?

    yes and you can use more then 2
    just don't give them the same name

  • Can you use 2 Thunderbolt Displays with Windows 7/Bootcamp on a Early 2011 Macbook pro?

    Can you use 2 Thunderbolt Displays with Windows 7/Bootcamp on a Early 2011 Macbook pro?
    I have 2 and cannot seem to get them to work?

    Can you use 2 Thunderbolt Displays with Windows 7/Bootcamp on a Early 2011 Macbook pro?
    I have 2 and cannot seem to get them to work?

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?

    The link is to a discussion started on 12/18 in the FiOS Internet forum.  Here's the link I get now, however it is different than the link I pulled a few hours ago.  If this system changes the link again, it may not work.
    http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
    You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
    Here's a link that is in the thread that gives more detail.
    https://secure.dslreports.com/faq/15984
    Good Luck!
    P.S.  "Copper Contributor" is my "rank."  gs0b is my user name.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • HT1206 Can I use one iPod Touch with 2 accounts and download from both accounts?

    Can I use one iPod Touch with 2 accounts? Can I download onto the one iPod from each account?

    I havent seen anything confirming this but I suspect not. that would require you keep logging in and out of the two accounts since you can only sign in to one at once. In iTunes on your computer if you log into another iTunes account you can't log into another one for 90 days. As I say I've seen nothing confirming this on a mobile device, but I suspect it will be the same.

  • Can i use same apple id with 2 iphones

    can i use same apple id with 2 iphones

    Welcome to Apple Support Communities
    Of course. Furthermore, you should do this if both phones are yours, so all your content will get synced and you can use all your purchases in both iPhones

Maybe you are looking for