Comments (3)
Done. Currently this is the full setup of the Apisearch client:
const api = apisearch({
appId: "music_app",
apiKey: "1cc7a3e0-bda5-11e7-abc4-cec278b6b50a",
options: {
endpoint: "http://puntmig.net", // it has this endpoint by default
apiVersion: "v1", // "v1" is the only and the default api version
cache: true // set to true by default
}
});
from javascript-client.
@alexhoma what does this cache means?
from javascript-client.
It refers to a javascript in memory cache. This is useful to avoid querying data when the user deletes his text search on an input box, for example.
Due to Apisearch server cache, we add a new parameter called http
on a cache options object. To specify the TTL of the cache in seconds.
options: {
endpoint: "http://puntmig.net", // it has this endpoint by default
apiVersion: "v1", // "v1" is the only and the default api version
timeout: 10000, // request abort after timeout in milliseconds (default 10000)
cache: {
inMemory: true, // javascript in memory cache (default true)
http: 0 // http cache, TTL in seconds (default 0)
}
}
from javascript-client.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javascript-client.