Guest User

Untitled

a guest
Jul 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. --
  2. -- Primary Ada Memcached client specification
  3. --
  4. -- This package defines the core API accessible by
  5. -- users of this library
  6. --
  7.  
  8. with Ada.Strings.Bounded;
  9. with Ada.Strings.Unbounded;
  10.  
  11. package Memcache is
  12. package Unbounded renames Ada.Strings.Unbounded;
  13. package Bounded is new Ada.Strings.Bounded.Generic_Bounded_Length(Max => 250);
  14.  
  15. type Connection is tagged private;
  16.  
  17. function Get(This : in Connection;
  18. Key : in Bounded.Bounded_String)
  19. return Unbounded.Unbounded_String;
  20.  
  21. private
  22.  
  23. type Connection is tagged record
  24. Host : Unbounded.Unbounded_String;
  25. Port : Natural;
  26. end record;
  27.  
  28. end Memcache;
Add Comment
Please, Sign In to add comment