2
0
Exilon 5 жил өмнө
parent
commit
971ecd3066
1 өөрчлөгдсөн 23 нэмэгдсэн , 1 устгасан
  1. 23 1
      README.md

+ 23 - 1
README.md

@@ -50,11 +50,14 @@ Small delphi/Firemonkey(Windows, Linux, Android, OSX & IOS) and fpc(Windows & Li
 * **Quick.Expression:** Evaluate object properties using expressions.
 * **Quick.Linq:** Makes Linq queries to any TObjectList<T>, TList<T>, TArray<T> and TXArray<T>, performing Select by complex Where like SQL syntax, update and order over your list.
 * **Quick.MemoryCache:** Caches objects/info with an expiration time, to avoid generate this info everytime is needed (database queries, hard to calculate info, etc).
+* **Quick.Collections:** Collections improvements like IList and IObjectList with Linq inherited.
+* **Quick.Pooling:** Creation of object pool to avoid external resource consum exhausts and overheads.
 
 
 **Updates:**
 
-* NEW: Collections: IList and IObjectList
+* NEW: Collections: IList and IObjectList with linQ support.
+* NEW: Pooling: ObjectPool.
 * NEW: Options file settings with sections.
 * NEW: MemoryCache with expiration & object compression.
 * NEW: Now included on RAD Studio GetIt package manager.
@@ -1053,6 +1056,25 @@ Options.OnFileModified := procedure
   end;
 ```
 
+**Quick.Collections:**
+ --
+ Define pool of connection, threads or any object you want to control to avoid resource consum like database connections, http clients, etc...
+
+Create http client pool:
+```delphi
+ pool := TObjectPool<THTTPClient>.Create(5,5000,procedure(var aInstance : THTTPClient)
+        begin
+          aInstance := THTTPClient.Create;
+          aInstante.UserAgent := 'MyAgent';
+        end);
+```
+Get object from pool:
+
+```delphi
+httpcli := pool.Get.Item;
+statuscode := httpcli.Get('https://www.mydomain.com').StatusCode;
+```
+
 **Quick.Collections:**
  --
 Defines interfaced List and Objectlist with linQ support inherited.