Skip to main content

a question about getRemoteAdvertisements

2 replies [Last post]
sinsigma
Offline
Joined: 2009-04-15

as we know,when we call the getRemoteAdvertisements();it will store the remote advertisements in the local cache.
When will the local cache clear to delete all the remote advertisements?can we clear it by our requirement?thx for the reply.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jtanago
Offline
Joined: 2008-06-18

When a peer publish an advertisement he could set an expiration and a lifetime. Otherwise, the advertisement will has the default ones (2hours and 365 days, I think).

You can delete an advertisement using the flushAdvertisement method of the DiscoveryService class.

sinsigma
Offline
Joined: 2009-04-15

thx alot my friend~