Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Can someone explain to me a little about CacheableContentProvider?

Asked by 9 years ago

CacheableContentProvider


I was looking through the Roblox Wiki API page when I accidentally clicked upon this link:

http://wiki.roblox.com/index.php?title=API:Class/CacheableContentProvider

I was hoping that someone wouldn't mind explaining what this is and how one can use it. I did a quick Google search on it and found literally nothing.

It also happens to have three sub-classes:

MeshContentProvider

SolidModelContentProvider

TextureContentProvider


This class doesn't even have it's own specific functions or properties. Everything it inherits is from the Instance class: Functions, Properties, YieldFunctions, and Events.

Even one of it's subclasses, TextureContentProvider, has it's own unique function:

void SetCacheSize ( int count )


Instance

Instance.new("CacheableContentProvider",workspace)

I also attempted to Instance this into workspace but got:

23:29:06.789 - Unable to create an Instance of type "CacheableContentProvider"


It isn't any type of service either!

print(game:GetService("CacheableContentProvider"))
--nil

In simple words... What is this?

0
Maybe it's something like "BasePart". BasePart is a part but a part is not a BasePart. EzraNehemiah_TF2 3552 — 9y
0
The -Able would suggest that it's a "superclass", and so might be a thing that several services *are*, but isn't a *thing* per se on its own. BlueTaslem 18071 — 9y

2 answers

Log in to vote
1
Answered by
Merely 2122 Moderation Voter Community Moderator
9 years ago

CacheableContentProvider is just a base class that other classes inherit. Although there are no visible Lua methods in the API, in the C++ code(which is what the ROBLOX client is written in) there are methods that do stuff behind the scenes, which is why the class is needed.

Ad
Log in to vote
0
Answered by
RM0d 305 Moderation Voter
9 years ago

Its is used by Roblox corescripts, it simply is a cache function, if they call it and the item already has been callled it gets it from the cache, however if its new roblox with cache it. There is no way to cache stuff as roblox does it automatically

Answer this question